From cd472ec10156c957398254bc5796155f0e76457d Mon Sep 17 00:00:00 2001 From: justr4mzi <243612488+justr4mzi@users.noreply.github.com> Date: Sun, 22 Nov 2026 17:29:07 +0000 Subject: D3D12 layer: stream-output statistics query heaps (D3D-302) CreateQueryHeap(D3D12_QUERY_HEAP_TYPE_SO_STATISTICS) returned E_NOTIMPL, so a title that makes one got nothing. The layer has no stream output (a PSO with StreamOutput entries is refused, SOSetTargets is not implemented), so every SO_STATISTICS_STREAM0..3 query counts 0 written and 0 needed. Such a heap is now made without a VkQueryPool: Begin/EndQuery record nothing in Vulkan (the D3D12 call rules and the ended tracking still apply), the queries overlap no occlusion or statistics query, and ResolveQueryData fills 16 zero bytes per query (D3D12_QUERY_DATA_SO_STATISTICS) with no statistics split. When stream output lands this becomes a VK_QUERY_TYPE_TRANSFORM_FEEDBACK_STREAM_EXT pool. Mesh-shader statistics (PIPELINE_STATISTICS1) are left to D3D-132. --- runtime/test/command_list_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'runtime/test/command_list_test.cpp') diff --git a/runtime/test/command_list_test.cpp b/runtime/test/command_list_test.cpp index e459b4cc8..4d877d429 100644 --- a/runtime/test/command_list_test.cpp +++ b/runtime/test/command_list_test.cpp @@ -306,6 +306,6 @@ int main() { CHECK(query_fits_heap(h::copy_queue_timestamp, q::timestamp) && !query_fits_heap(h::timestamp, q::occlusion)); CHECK(query_fits_heap(h::so_statistics, q::so_statistics_stream3) && !query_fits_heap(6, q::occlusion)); CHECK(query_result_size(q::occlusion) == 8 && query_result_size(q::timestamp) == 8); - CHECK(query_result_size(q::pipeline_statistics) == 88 && query_result_size(q::so_statistics_stream0) == 0); + CHECK(query_result_size(q::pipeline_statistics) == 88 && query_result_size(q::so_statistics_stream0) == 16); return 0; } -- cgit v1.2.3