[PATCH vkd3d 4/7] tests: Clear RTV outside pipeline statistics query.

Józef Kucia joseph.kucia at gmail.com
Mon Oct 8 08:40:18 CDT 2018


From: Józef Kucia <jkucia at codeweavers.com>

On RADV additional vertices generated by clears are also counted.

The Vulkan spec allows this behavior:

"Rendering operations such as clears, MSAA resolves, attachment
load/store operations, and blits may count towards the results of
queries."

Signed-off-by: Józef Kucia <jkucia at codeweavers.com>
---
 tests/d3d12.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/d3d12.c b/tests/d3d12.c
index dd842bc461ae..73f4da96686a 100644
--- a/tests/d3d12.c
+++ b/tests/d3d12.c
@@ -16898,11 +16898,11 @@ static void test_query_pipeline_statistics(void)
     ID3D12GraphicsCommandList_ResolveQueryData(command_list, query_heap, D3D12_QUERY_TYPE_PIPELINE_STATISTICS, 0, 1,
             resource, 0);
 
+    ID3D12GraphicsCommandList_ClearRenderTargetView(command_list, context.rtv, white, 0, NULL);
+
     /* Second query: draw something simple. */
     ID3D12GraphicsCommandList_BeginQuery(command_list, query_heap, D3D12_QUERY_TYPE_PIPELINE_STATISTICS, 1);
 
-    ID3D12GraphicsCommandList_ClearRenderTargetView(command_list, context.rtv, white, 0, NULL);
-
     ID3D12GraphicsCommandList_OMSetRenderTargets(command_list, 1, &context.rtv, FALSE, NULL);
     ID3D12GraphicsCommandList_SetGraphicsRootSignature(command_list, context.root_signature);
     ID3D12GraphicsCommandList_SetPipelineState(command_list, context.pipeline_state);
-- 
2.18.0




More information about the wine-devel mailing list