Commit Graph

7 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
916a2e861a Reject invalid BVH GPU smoke-test timeouts (#6656)
Squash-merged after diff review of PR #6656
2026-11-23 11:04:48 -06:00
33905dc9dd Fix what the round-43 merges broke (pytest)
Merges that each passed alone but clash together:
- v_cmp_class_f64: the earlier cmp_class_f64 (685d16ed9) (operand-form checks, test_cmp_class_f64) and the later f64 branch
  in cmp_class both handled the opcode; f64 goes to cmp_class_f64 again, f16 stays in cmp_class.
- rdna2spirv CLI tests: spirv-as/spirv-val now run in the output folder with the staging file's bare name, so
  the test doubles resolve it against cwd; assemble_spirv decodes the output only when it is bytes. (The doubles
  had been writing .spirv-*.tmp files into the repository root.)
- ps_w64 fixtures (TEST-722): an 18th fixture (ps_w64_a_discard) landed; its killed lanes export nothing and
  keep the clear value.
- first_light: a run without an OBJ removes mesh.bin, and harness_env reads manifest["files"]; batch_glb's stats
  name failures and dropped textures; run_gpu_tests reports a frame never written as a missing readback
  (TEST-837).
- make_game TRANSLATION_SOURCES and runtime.yml's paths include spirv_opt.py and report_paths.py (and
  wave64_emulate_opt.py), which the translator imports.
Repo rules: stdout guard on six tools; encoding on two opens (gen_gdk_runtime_classes' helper is read_utf8);
newline on one write; anim_skeleton_match's joaat encodes like hashdict.joaat; test_feature_scan's new test is
listed with the others its globals() runner reaches.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-22 22:07:41 -05: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