TEST-722-PSB-OPLOAD: move PSB OpLoad out of OpAccessChain and tighten ps_w64 checks #910
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/910"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from ubiquitarianism/leonida. Originally posted by markankamaransheogarat-sys on 2026-11-24T15:09:38Z.
Summary
if p[0] == "psb":load branch out ofOpAccessChainintoOpLoadintests/semantic/spirv_wave_interp.py, fixing PhysicalStorageBuffer loads.ps_w64wave64/wave32 checks and add regression tests for PSBOpLoadintests/semantic/test_spirv_wave_interp.pyandtests/semantic/test_wave64_halves.py.Verification
python3 -I tests/semantic/test_spirv_wave_interp.py: 20/20 passed.python3 -I tests/semantic/test_wave64_halves.py: 126/126 passed.AI-assisted: yes (synthetic tests only, no game files).
Imported from ubiquitarianism/leonida. Originally posted by qhukz13 on 2026-11-24T15:39:18Z.
Review: COMMENTED
Checked 1d5b44581 (Linux, CPU only, no game files). Merges cleanly with current
main.OpAccessChainthepsbbranch sat after the access-chain-into-psb case, which already returns, so it never ran; inOpLoadit now does.test_physical_storage_buffer_load_and_store_readbackcatches it: withmain'sspirv_wave_interp.pyit errors (IndexError), with this one it passes.test_wave64_halves.pypasses with and without the interpreter change, so its part is a separate tightening. The new heap checks follow the fixture's own header (ps_w64_b_ballot_atomic.asm: the wanted pixels arex % 4 == 1, each storesy * 64 + x + 1in a slot of its own), which is stricter than the old "16 distinct slots" and also catches a write past the last slot. The tier C change now checks wave32 against the reference on every fixed channel instead of onlyw32 != w64.tests/semantic/test_spirv_wave_interp.py20 OK,tests/semantic/test_wave64_halves.py126 OK.LGTM.
Imported from ubiquitarianism/leonida. Originally posted by sodove on 2026-11-28T10:46:04Z.
#910 | head
0e9abdc7d4122adcd49200b416cf1b191eadc19a|python3 -m unittest discover -s tests/semantic -p test_spirv_wave_interp.py -v,python3 -m unittest discover -s tests/semantic -p test_wave64_halves.py -v| red: 147 run, 1 error | green: 148 passed | Red → greenI left the wave interpreter on main for the baseline and copied only the two test files. The physical-storage-buffer readback case raised IndexError there. Both files passed on the merged interpreter.
Captured 212 distinct complete SPIR-V module(s) emitted while rerunning test_wave64_halves.py on the merged tree. All assembled and passed spirv-val for Vulkan 1.2 with --allow-offset-texture-operand.
tests/semantic/test_spirv_wave_interp.pytests/semantic/test_wave64_halves.pyBase
3bd936ecd98995bca3e1da83d5e28d2343001aefwas merged into the recorded PR head for the second run. Ubuntu 26.04.1 (WSL2), Python 3.14.4. Counts include unittest subtest events where applicable. AI-assisted with OpenAI Codex. Batch claim.Imported from ubiquitarianism/leonida. Originally posted by DadaCap on 2026-11-28T11:52:06Z.
Merged, thank you @markankamaransheogarat-sys! This translator PR (TEST-722-PSB-OPLOAD: move PSB OpLoad out of OpAccessChain and tighten ps_w64 checks) passed its own tests with main merged in during sodove's verification of this batch, so it went in with the batch.
AI-assisted (Claude Code, Claude Opus 5.5), posted for the maintainers.