A short final slice made p overshoot EOF; used = p - s - unused_data
then exceeded the real stream size, so the walker jumped past the end
and skipped every trailing zlib/Bink stream. Advance by len(chunk).
Adds a synthetic two-stream regression test (1 file before, 2 after).
Records the 116-export contract (23 functions + 93 GUIDs), the 28 D3D12 IIDs and the 10 console-only IIDs from SCARAB, with per-item provenance and file:line references. The IID block ordinals 72-99 are derived from the alphabetical export order anchored by IID_ID3D12Debug @76. Includes a checker/test that re-verifies the 116-slot arithmetic and the 83 standard GUIDs against the Windows SDK.
Each image instruction called %desc_lookup_fn for its T# and S#, so a shader sampling the same texture
many times in a block called it many times. The call count is what the driver's compile time follows
(ShadowRenderTiledCascades: 1550 static calls on main). desc_lookup_sgpr remembers the result per
(first SGPR, dwords) for the rest of the basic block.
- store_reg drops the entries overlapping the SGPR it writes; every write to %sgpr goes through it
(64-bit writes are two calls), apart from the function prologue, which runs before any block.
- translate() clears the cache when a basic block starts.
- Only lookups at the top level of the block are remembered (desc_cache_ok): an id made inside an op's
selection construct would not dominate the code after its merge.
- image_load passes its image index to image_load_typed instead of looking the T# up a second time.
- tests/test_desc_cache.py counts the calls.
- Support '; mattr: ...' header directives in runtime/test/shaders/build.py,
scripts/run_gpu_tests.py, and tests/conftest.py.
- Restore runtime/test/shaders/cs_wave64_ballot.asm to wave64 v_cmp_*_e64
s[4:5] / s[6:7] / s[10:11] form using '; mattr: +wavefrontsize64,-wavefrontsize32'.
- Register cs_wave64_ballot and cs_wm_* in scripts/run_gpu_tests.py.
- Map vcc_lo -> MASK_LO and vcc_hi -> MASK_HI in lane_masks.kind() when vcc
holds a lane mask, and support wave64 vcc_hi mask reads in rdna2spirv.py.
- Use wave_lane() instead of %sg_lane in s_bfm_b64 so wave32-in-subgroup64
lane positions match wave_mask().
- Strengthen test_translate.py half-compare checks to assert the exact
lane < 32 / lane >= 32 SSA guard pattern feeding OpGroupNonUniformAll/Any,
and add vcc_lo/vcc_hi half-mask tests in test_lane_masks.py and test_translate.py.
- Update lane_masks.py docstrings, docs/design.md (OpGroupNonUniformBitwiseOr
and known remaining gaps), and blank-line formatting in test_lane_masks.py.
Add docs/shader_validation.md describing why spirv-val is not enough, the CPU/GPU differential model, test-program construction with llvm-mc, the harness design, coverage plan, limits, and prior art.
Add tools/cpu_ref.py, a standard-library interpreter for a small straight-line RDNA2 subset from a shader_ir listing. It models SGPR/VGPR state, VCC/EXEC/SCC, one or 64 lanes, inline constants and literals, exact f32 FMA and the requested integer/float ops. Anything outside the subset raises Unsupported.
Add tests/test_cpu_ref.py with hand-written listings pinning NaN, signed zero, denormals, FMA single rounding, cndmask, EXEC masking, 16-bit packed halves and shifts.
Add value-level semantic interpreter tests covering SDWA source sub-register selection (byte extraction, word extraction, dword pass-through) and sign extension (under sext()).
- Verifies BYTE_0 through BYTE_3 (unsigned and sign-extended)
- Verifies WORD_0 and WORD_1 (unsigned and sign-extended)
- Tests sign-bit boundary conditions (0x7f/0x80, 0x7fff/0x8000)
- Tests source sub-register broadcasting into dual-operand ALU operations
- Cross-checks translation and mini-interpreter execution against independent Python reference oracle
- Standard library only, zero game data or proprietary assets