Repository navigation
Conversation
|
Added 3169652:
AI-assisted (Claude Code). |
|
Added f574359: AI-assisted (Claude Code). |
|
Tested
No game files. AI-assisted (Claude Code). |
|
Tested
Not run: AI-assisted (Claude Code). Synthetic test shaders only, no game files. |
|
Tested
Not tested: |
|
Tested
This looks like the NVIDIA Windows watchdog on long-running programs rather than a translator regression. A note about input-dependent long runs, or per-program input limits, may be worth considering; I'm not proposing a code change. No game data in this report. AI-assisted (OpenCode). |
…EST-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>
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>
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>
…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>
f574359 to
ef52480
Compare
|
Following up on the finding above with a concrete suggestion for
Measured at Counts and outcomes only, no game data. AI-assisted (OpenCode). |
# Conflicts: # docs/embedded_shaders.md
Depends on: #3263 (
VKC_HEAP_INIT; this branch adds one commit on top of it). Part 2 of TEST-594 (claim: #2891 (comment), carried over in #3381).What
tools/bvh_gpu_smoke.pyrunsXboxBvhBuilder.dll's translated compute programs on the GPU, from your own package:docs/embedded_shaders.md§4 documents, into a work folder, passing--max-shared-memorytordna2spirv.py.s[0:1], which invk_compute_testis the heap base. The tool seeds the heap withVKC_HEAP_INIT: a 4 KiB table whose words all hold--table-qword(default0x2000), then zeros. Every root descriptor then points past the table into zeros, and every root constant reads0x2000or 0.VK_LAYER_KHRONOS_validationreports no error, and both runs write the same heap bytes. The report gives each program's status and how many heap words it changed.The rehydration trio is TEST-376's (checked against
tools/bvh_rehydrate.py), so it's skipped unless--include-rehydration. The report holds module names, statuses and counts only.Result
AMD Radeon RX 9070, Windows 11, MSVC Release, package 1.0.2.1,
--max-shared-memory 32768: 49 of 49 pass, the 4-minute run including translation. With these inputs, 7 programs change heap words; the rest run and leave early.docs/embedded_shaders.md§5 records this, and says plainly that it shows the programs run cleanly, not that their output is right; output references are the open part.Found on the way, also in the doc:
BitonicPreSort64CSandBitonicInnerSort64CSdeclare 32,780 bytes of workgroup memory with the translator's default cap: 12 over the 32 KiB AMD's Windows driver allows (VUID-RuntimeSpirv-Workgroup-06530). Their highest LDS offset is 8192, and--max-shared-memory 32768shrinks the array to what they use, after which they pass. That's why the tool defaults to 32768.RadixCountnondeterministic: its descriptors then point at the table itself, which it writes while other waves read it. That comes from the input, not the translator, and the default table avoids it.LeafRehydration(TEST-376's) doesn't finish within 60 s with either table, which is useful for that item.Tests
tests/test_bvh_gpu_smoke.py, 8 tests, no GPU or game files:vk_compute_test: pass, exit code, validation error, timeout, nondeterministic. It also checks that a failed first run isn't repeated and that the rehydration programs are left out by default;vk_compute_test, a heap too small, no DLL.pytest tests/test_bvh_gpu_smoke.py tests/test_docs_links.py: 13 passed.AI-assisted (Claude Code).
🤖 Generated with Claude Code