Repository navigation
Conversation
|
Independent check — pass (CPU only, no game files). Environment: Windows 11, CPython 3.15.2.
AI-assisted (Devin). |
|
Independent Windows CPU verification on
|
…fix sums The runner now sets VKC_SUBGROUP_SIZE from index.json's wave64 flag, as check.py does: a wave64 program left to the device's default may run 32 wide. PrefixSum64..PrefixSum4096 are checked against their exclusive scan and total. On main the five wave64 ones fail at element 128 or 256 (a VOP3 lane mask printed as s6 for s[6:7], fixed by ItsNotRexed#3910); with ItsNotRexed#3910 all twelve checked programs match. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
InitHeaders fills a 64-byte BVH header per 40-byte record and an empty box where
a record has a bounds address; GetBVHCompactedSize computes a compacted size in
three modes. Five new --checked cases ("Program:case" for several inputs to
one program) compare every byte they write and the bytes they must leave alone.
All five match on an RX 9070; with global_store_dwordx4 or s_addk_i32 skipped in
the translator the dependent cases fail. Temporary files no longer carry the
case's ':' (an NTFS stream name on Windows).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
361a3ba to
0da85f6
Compare
|
Tested
No game files. AI-assisted (Claude Code). |
|
Read the diff (not run). Two small points on the new GetBVHCompactedSize cases:
AI-assisted (Claude); code read only, nothing run. |
Depends on: #5085 (this branch adds one commit on top of it). TEST-594, the BVH builder's programs checked on a GPU.
What
Five more
--checkedcases intools/bvh_gpu_smoke.py, for two programs whose effect reads straight off their code:InitHeaders: for each 40-byte record (table+0x0, count at +0x10), it fills the 64-byte BVH header at the record's first address. That's three of the record's fields, the empty bounds (+-FLT_MAX), a fourth field, -1, the last two fields and0x7f7f7f. Where the record has a second address, it writes an empty box there. The case has three records, one without a bounds address, plus a fourth record past the count, which must stay untouched, as must the bytes past each header.GetBVHCompactedSizein its three modes (mode at table+0x20, header address at +0x18):(n + 1) << 6as a u64;(8 * K + 0x137) & ~0xffand writes K. Two cases: K is the header's word 3 when word 0 isn't negative, and 0 when it is;(n + 1) << 2andn + 1to two other outputs.Since one program now has several inputs,
CHECKEDkeys can beProgram:case. The temporary files replace the:, which on NTFS would name a stream, not a file.Tested
AMD Radeon RX 9070, Windows 11:
--checked: 17 of 17 with rdna2spirv: a wave64 VALU lane mask printed in wave32 syntax is the SGPR pair #3910's translator, 12 of 17 withmain's (the five wave64 prefix sums, as in bvh_gpu_smoke: run each program at its wave size; check all seven prefix sums (TEST-594) #5085). The smoke run stays 49 of 49.global_store_dwordx4,InitHeaderswrites nothing. With it skippings_addk_i32, both mode-2 cases come out exactly0x100short. Modes 1 and 3 don't use either instruction and still pass, as they should.pytest tests/test_bvh_gpu_smoke.py tests/test_docs_links.py tests/test_docs_cli_flags.py: 21 passed. The fake runner implements both programs independently, from the table as the program reads it, and a flipped byte in each case's output fails it.docs/embedded_shaders.md§5/§6 updated. Counts and statuses only; nothing from the package is included.AI-assisted (Claude Code).
🤖 Generated with Claude Code