Commit Graph

5 Commits

Author SHA1 Message Date
7122cf6d45 bvh_gpu_smoke: clean temporary work dirs, guard --max-shared-memory/--json inputs, and write JSON atomically 2026-11-25 19:39:24 +08:00
7c0821659c bvh_gpu_smoke: raise default --heap-bytes to 16 MiB (#6633)
Squash-merged after diff review of PR #6633
2026-11-23 11:10:47 -06:00
f574359675 bvh_gpu_smoke: check PrefixSum64's exclusive scan and block total
One group scans 64 words in place through five ds_swizzle_b32 broadcast steps;
the check feeds input that wraps past 2^32 and compares every element and the
total. Passes on an RX 9070; with ds_swizzle_b32 skipped it fails from element 2.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:23:01 +00:00
3169652e94 bvh_gpu_smoke: --checked compares five programs' output byte for byte
RadixReset, ResetKDOP, ResetToIndexBuffer, CopyCounters and ResetCounterValues
take an address, a count and a value or source from the root table and write
that many entries; --checked gives them those fields and compares every entry
and the untouched bytes after them. All five match on an RX 9070; with the
translator made to skip v_add_nc_u32, ResetToIndexBuffer fails the check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:21:02 +00:00
6d458e4b05 bvh_gpu_smoke: run XboxBvhBuilder's translated programs on the GPU (TEST-594)
tools/bvh_gpu_smoke.py translates the 52 embedded programs from the package
(the pipeline docs/embedded_shaders.md documents) and runs each through
vk_compute_test twice, with a root table seeded by VKC_HEAP_INIT whose words
point past it into zeros. A run passes when it exits 0, the validation layer
reports nothing and both runs write the same heap bytes. On an RX 9070 all 49
non-rehydration programs pass; seven change heap words with these inputs.

The wave64 bitonic sorts need --max-shared-memory set to the device's 32 KiB;
docs/embedded_shaders.md records the run and what it does and doesn't show.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 21:07:38 +00:00