Conor McCarthy : tests: Add a UINT_MAX layer count test to test_clear_depth_stencil_view().
Alexandre Julliard
julliard at winehq.org
Tue Oct 12 16:05:32 CDT 2021
Module: vkd3d
Branch: master
Commit: 41685c374a4883696c98c72cd9b3090c29c1334e
URL: https://source.winehq.org/git/vkd3d.git/?a=commit;h=41685c374a4883696c98c72cd9b3090c29c1334e
Author: Conor McCarthy <cmccarthy at codeweavers.com>
Date: Tue Oct 12 18:31:16 2021 +0200
tests: Add a UINT_MAX layer count test to test_clear_depth_stencil_view().
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 | 11 +++++++++++
1 file changed, 11 insertions(+)
diff --git a/tests/d3d12.c b/tests/d3d12.c
index 9e4dcb5..5593393 100644
--- a/tests/d3d12.c
+++ b/tests/d3d12.c
@@ -4485,6 +4485,17 @@ static void test_clear_depth_stencil_view(void)
reset_command_list(command_list, context.allocator);
}
+ transition_resource_state(command_list, ds.texture,
+ D3D12_RESOURCE_STATE_COPY_SOURCE, D3D12_RESOURCE_STATE_DEPTH_WRITE);
+ dsv_desc.Texture2DArray.ArraySize = UINT_MAX;
+ ID3D12Device_CreateDepthStencilView(device, ds.texture, &dsv_desc, ds.dsv_handle);
+ ID3D12GraphicsCommandList_ClearDepthStencilView(command_list, ds.dsv_handle,
+ D3D12_CLEAR_FLAG_DEPTH, expected_values[4], 0, 0, NULL);
+
+ transition_resource_state(command_list, ds.texture,
+ D3D12_RESOURCE_STATE_DEPTH_WRITE, D3D12_RESOURCE_STATE_COPY_SOURCE);
+ check_sub_resource_float(ds.texture, 5, queue, command_list, expected_values[4], 1);
+
destroy_depth_stencil(&ds);
destroy_test_context(&context);
}
More information about the wine-cvs
mailing list