Conor McCarthy : tests: Use D3D12_RESOURCE_STATE_VERTEX_AND_CONSTANT_BUFFER for constant buffers in test_unbounded_resource_arrays().

Alexandre Julliard julliard at winehq.org
Mon Oct 11 15:36:42 CDT 2021


Module: vkd3d
Branch: master
Commit: 8fbe785c11f642c1c569195fa73f1d1d1c73f272
URL:    https://source.winehq.org/git/vkd3d.git/?a=commit;h=8fbe785c11f642c1c569195fa73f1d1d1c73f272

Author: Conor McCarthy <cmccarthy at codeweavers.com>
Date:   Mon Oct 11 17:55:06 2021 +0200

tests: Use D3D12_RESOURCE_STATE_VERTEX_AND_CONSTANT_BUFFER for constant buffers in test_unbounded_resource_arrays().

Signed-off-by: Conor McCarthy <cmccarthy at codeweavers.com>
Signed-off-by: Henri Verbeet <hverbeet at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 tests/d3d12.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/d3d12.c b/tests/d3d12.c
index 4991dd5..38fab13 100644
--- a/tests/d3d12.c
+++ b/tests/d3d12.c
@@ -34940,7 +34940,7 @@ static void test_unbounded_resource_arrays(void)
         upload_buffer_data(constant_buffers[i], 0, sizeof(cb_data), &cb_data, queue, command_list);
         reset_command_list(command_list, context.allocator);
         transition_resource_state(command_list, constant_buffers[i],
-                D3D12_RESOURCE_STATE_COPY_DEST, D3D12_RESOURCE_STATE_NON_PIXEL_SHADER_RESOURCE);
+                D3D12_RESOURCE_STATE_COPY_DEST, D3D12_RESOURCE_STATE_VERTEX_AND_CONSTANT_BUFFER);
 
         cbv_desc.BufferLocation = ID3D12Resource_GetGPUVirtualAddress(constant_buffers[i]);
         cbv_desc.SizeInBytes = align(sizeof(cb_data), D3D12_CONSTANT_BUFFER_DATA_PLACEMENT_ALIGNMENT);




More information about the wine-cvs mailing list