Repository navigation
Conversation
…gned and unsigned, plain and _rtn_ 32 lanes contend for one address with data straddling the signed boundary, then lane 0 runs the _rtn_ forms. Checked on an RTX 5080 and the Radeon RDNA2 iGPU. Semantic twin and design.md row included. AI-assisted.
|
Independent RTX 5070 / Windows 11 result at I also checked all four Both native wave32 and emulated wave64 passed SPIR-V validation and each matched 28,672 returned values, 32,768 final reads and 4,096 inactive-register checks. A negative control kept the atomic update but wrote its input to the destination instead of its old value. The final words still matched and the reconstructed history failed in both configurations. |
|
Tested
AI-assisted (ZCode agent): builds and runs executed by a coding agent on this machine. |
|
Tested Test programs built from The eight LDS atomic min/max words (signed and unsigned, plain and |
|
Tested |
|
Independent Windows GPU check: PASS on RTX 3060 12 GB (driver 621.14, Vulkan 1.4.357, Windows 11 26H2, Ryzen 5 3600). Head: 1e011ae The shader translated and passed spirv-val. GPU readback matched all eight expected words (1/1 passed, exit 0): AI-assisted test execution and write-up. |
|
Independent check of #2582 (
The 32-lane signed-boundary straddle Synthetic test fixtures only; no game files. AI-assisted. |
runtime/test/shaders/check.py scripts/run_gpu_tests.py AI-assisted.
|
Tested
No game files. AI-assisted (Claude Code). |
|
Apple M2 data for the new LDS min/max fixture (macOS 26.4, MoltenVK 1.4.2 direct, subgroup 4..32, llvm-mc 23.1.6, Python 3.13.18), head abb2724.
Full builds at these heads fail on AppleClang 17 at vk_pipeline_check.cpp:567 (BUILD-822, fixed by open PR #2927); GPU binaries built, so the runs above are valid. Synthetic shader and counts only; no game files. AI-assisted. |
|
Tested
Nit: |
|
Tested abb2724 merged onto main f847748 on an RTX 5090 (driver 616.92), Windows 11, Vulkan SDK 1.4.363. The GPU test programs were built from the same tree:
AI-assisted (Claude Code). |
docs/design.md runtime/test/shaders/check.py scripts/run_gpu_tests.py tests/semantic/regen_fixtures.py AI-assisted.
|
Tested f0a6cdb on NVIDIA RTX 4080, driver 610.88, Windows 11: pass This is the head rebased on
AI-assisted. |
|
Tested
No game files. AI-assisted (Claude Code). |
|
Tested
Not run: AI-assisted (Claude Code). |
Requested by Lucas · project thread
Claimed in the coordination issue as: #2516 (comment)
What and why
gaps.mdlistsds_max_u32andds_min_i32as tested on the CPU only; noruntime/test/shadersshader names any of the 32-bit LDS min/max atomics. This addscs_w32_ds_minmax.asm, a wave32 compute fixture fords_max_u32,ds_min_i32,ds_max_i32,ds_min_u32and their_rtn_forms, with the expected words derived by hand from the ISA pseudocode in its header.0x7FFFFFF0 + lane, so the values straddle the signed boundary. Min and max do not depend on arrival order, so the final word is exact (out[0..3])._rtn_forms; out[4..7] is the returned old value XOR the word left in memory, so both are checked.Registered in
check.pyandrun_gpu_tests.py, as aregen_fixtures.pyfixture, with a CPU twintests/semantic/test_lds_minmax_fixture.py(plain-Python reference, lane 0 through the interpreter) and adocs/design.mdrow. No translator change: the translator was already right on both GPUs.ds_wrxchg_rtn_b64and the other exchanges are left out because #2003 covers them. Theds_or/xor_b64ops are #1850's. #2295 is the CPU-onlyds_min_i32test and does not overlap.Tested
cs_w32_ds_minmaxPASS.Both:
0x8000000f 0x80000000 0x7fffffff 0x7ffffff0 0xf0000000 0xfffffffe 0xefffffff 0xffffff01(device lines confirmed withvk_compute_test).ds_max_u32toOpAtomicSMaxin the translator makes the test fail on both GPUs (out[0]0x7fffffff, out[4]0x0) and the semantic twin; reverted.python -m unittest discover -s tests/semantic: 2571 tests OK (3 skipped).regen_fixtures.py --checkandtests/test_shader_checks.pypass.Checklist
docs/design.mdwith its GPU check.AI-assisted.