mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-04-13 05:43:18 -07:00
tests/shader_runner: Introduce a 'depth-bounds' test option.
This commit is contained in:
committed by
Henri Verbeet
parent
12a7cde092
commit
3eb2a3d0e4
Notes:
Henri Verbeet
2024-09-11 15:31:24 +02:00
Approved-by: Henri Verbeet (@hverbeet) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/1031
@ -1128,6 +1128,7 @@ struct test_context
|
||||
ID3D12CommandQueue *queue;
|
||||
ID3D12CommandAllocator *allocator;
|
||||
ID3D12GraphicsCommandList *list;
|
||||
ID3D12GraphicsCommandList1 *list1;
|
||||
ID3D12PipelineState **pso;
|
||||
size_t pso_count, pso_capacity;
|
||||
|
||||
@ -1249,6 +1250,10 @@ static inline bool init_test_context_(unsigned int line, struct test_context *co
|
||||
context->allocator, NULL, &IID_ID3D12GraphicsCommandList, (void **)&context->list);
|
||||
ok_(line)(SUCCEEDED(hr), "Failed to create command list, hr %#x.\n", hr);
|
||||
|
||||
if (FAILED(hr = ID3D12GraphicsCommandList_QueryInterface(context->list,
|
||||
&IID_ID3D12GraphicsCommandList1, (void**)&context->list1)))
|
||||
context->list1 = NULL;
|
||||
|
||||
if (desc && desc->no_render_target)
|
||||
return true;
|
||||
|
||||
@ -1340,6 +1345,8 @@ static inline void destroy_test_context_(unsigned int line, struct test_context
|
||||
|
||||
ID3D12CommandAllocator_Release(context->allocator);
|
||||
ID3D12CommandQueue_Release(context->queue);
|
||||
if (context->list1)
|
||||
ID3D12GraphicsCommandList1_Release(context->list1);
|
||||
ID3D12GraphicsCommandList_Release(context->list);
|
||||
destroy_pipeline_state_objects(context);
|
||||
free(context->pso);
|
||||
|
Reference in New Issue
Block a user