upleb.uk

Public git repos — served from a NIP-34 GRASP relay at git.upleb.uk

summaryrefslogtreecommitdiff
path: root/runtime/test/command_list_test.cpp
diff options
context:
space:
mode:
authorjustr4mzi <243612488+justr4mzi@users.noreply.github.com>2026-11-22 17:29:07 +0000
committerjustr4mzi <243612488+justr4mzi@users.noreply.github.com>2026-11-22 20:14:17 +0000
commitcd472ec10156c957398254bc5796155f0e76457d (patch)
tree4c3afb8cbd234e19fce4753bbdd7d8449cd2bc75 /runtime/test/command_list_test.cpp
parentf847748cc76bd3777f9c070c4034eb2fc1c04e64 (diff)
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.
Diffstat (limited to 'runtime/test/command_list_test.cpp')
-rw-r--r--runtime/test/command_list_test.cpp2
1 files changed, 1 insertions, 1 deletions
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() {
306 CHECK(query_fits_heap(h::copy_queue_timestamp, q::timestamp) && !query_fits_heap(h::timestamp, q::occlusion)); 306 CHECK(query_fits_heap(h::copy_queue_timestamp, q::timestamp) && !query_fits_heap(h::timestamp, q::occlusion));
307 CHECK(query_fits_heap(h::so_statistics, q::so_statistics_stream3) && !query_fits_heap(6, q::occlusion)); 307 CHECK(query_fits_heap(h::so_statistics, q::so_statistics_stream3) && !query_fits_heap(6, q::occlusion));
308 CHECK(query_result_size(q::occlusion) == 8 && query_result_size(q::timestamp) == 8); 308 CHECK(query_result_size(q::occlusion) == 8 && query_result_size(q::timestamp) == 8);
309 CHECK(query_result_size(q::pipeline_statistics) == 88 && query_result_size(q::so_statistics_stream0) == 0); 309 CHECK(query_result_size(q::pipeline_statistics) == 88 && query_result_size(q::so_statistics_stream0) == 16);
310 return 0; 310 return 0;
311} 311}