Commit Graph

1 Commits

Author SHA1 Message Date
2275144dc1 Tests: CPU coverage for query replay edge cases (replay_query_edges)
These cases are only reached by the GPU tests today, so CI without a GPU never checks them. The new test runs them
against mocked Vulkan entry points (no driver, no GPU, no game data):

- query ranges at the last heap slot and the exact heap end, and the one-past-end refusal, for every query type;
- resolve counts at and one past each OcclusionResolve chunk (occlusion sum 256/257, binary 1024/1025, statistics
  64/65) into a suballocated destination, with the bytes around it untouched;
- the shared scratch buffer reused across helper types without a stale running sum;
- results carried across three lists and several submissions, repeated resolves, query reuse and commit();
- statistics segments summed over all 11 counters, helpers outside active segments, and no segment for a timestamp
  resolve;
- the occlusion and statistics segment pools VulkanQueue::execute allocates, and the second list's bases;
- a failed submit leaving query results unpublished, and the retry;
- predication set, cleared and rebound around copies, and the recording checks for queries and predicates.

All of these pass on main; this adds coverage only. As a negative control, shrinking OcclusionResolve's
sum_capacity from 256 to 255 makes the test fail at the chunk-boundary check.

Co-Authored-By: OpenAI Codex <noreply@openai.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 14:03:23 -03:00