upleb.uk

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

summaryrefslogtreecommitdiff
path: root/runtime/test/tiny_game_exit_code_test.cpp
diff options
context:
space:
mode:
authorTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-27 18:48:19 -0600
committerTyrannys <80750971+Tyrannys@users.noreply.github.com>2026-11-27 18:48:19 -0600
commit202786b51e3ae4d90c5ea14e78998d7cefa7900c (patch)
treefb38d096d255f997c972ac605898b354d43a163a /runtime/test/tiny_game_exit_code_test.cpp
parent431ceba4f4a55c69c26fcf0e36fd83e86e1b9a32 (diff)
vulkan_replay: a clamped mesh draw's statistics segment is a mesh segment; a batch reads only its own lists
From kevincommits' finding (item 2) in #1608. - plan_overlapping_statistics_segments: a clamped indirect draw opens a segment of its own (the clamp is a helper dispatch), but the planner then set the segment's kind to vertex and skipped the draw-kind rule. A clamped indirect mesh draw under overlapping statistics queries therefore ran in the full 11-counter pool (VUID-vkCmdDrawMeshTasksEXT-pipelineStatistics-07076) and had no mesh-primitives query. The clamped call now falls through to the same rule as every draw; a dispatch leaves the kind unset. The one-query-at-a-time planner already marked it mesh. - VulkanQueue::execute keeps the PreparedLists of its largest batch, but gathered the segment kinds from all of them, so a smaller batch could pick up a stale mesh segment and create the mesh pools (or fail as unsupported where the device has none). It now gathers from this batch's lists only, through batch_statistics_mesh in vulkan_replay.h. replay_query_predication_test gains case 16b: the clamped mesh draw's segment is mesh, a mesh draw after it stays in it, a vertex draw splits; the non-overlapping planner agrees; and batch_statistics_mesh over the first n lists leaves the stale tail out. 2 checks fail with the old planner. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Diffstat (limited to 'runtime/test/tiny_game_exit_code_test.cpp')
0 files changed, 0 insertions, 0 deletions