Repository navigation
GPU test cs_w32_late_ext: ds_mskor, v_add/sub_nc_i16 clamp, s_buffer_load constant offset (OLD-9908) - #1448
GPU test cs_w32_late_ext: ds_mskor, v_add/sub_nc_i16 clamp, s_buffer_load constant offset (OLD-9908)#1448LouisRiverstone wants to merge 5 commits into
Conversation
…load constant offset - GPU test cs_w32_late_ext: ds_mskor, v_add/sub_nc_i16 clamp, s_buffer_load constant offset - test_late_ext_fixture: runs under python -I Carried over from old-pr/9908 (old upstream PR 9908), rebased on main.
|
Tested
AI-assisted; synthetic fixtures only, no game data. |
|
GPU test on an NVIDIA Ada card, for the record: this passes on an RTX 4090.
Only the filtered fixture(s) were run for this PR, not the full suite or ctest; the full-suite baseline for this card on |
# Conflicts: # runtime/test/shaders/check.py # scripts/run_gpu_tests.py
|
Run on RTX 3090 (PR head, plus one extra run on main with the conflict resolved by hand)
The branch is 3449 commits behind main; could you merge main into it when you have a moment? Thanks. |
…w fixtures in run_gpu_tests.py
|
Ready for testing: with today's merge of AI-assisted (Claude Code). |
…uarded out-of-range load Mesa llvmpipe (LLVM 21.1.8) reads the address of a load behind a branch that is not taken. The fixture's s_buffer_load_dword with s12 = -4 is out of range by design (ProjectLeonida#1948): the translator guards it, the guard is false, and the word is 0. But its address is 4 GiB past the buffer, so llvmpipe segfaults (exit -11), which made linux-gpu-tools red on every head of this branch. Checked on llvmpipe in WSL: replacing only that load with s_mov_b32 makes the fixture pass, and keeping the guard with an in-range address gives the expected words, out[6] = 0 included. DEVICE_SKIPS in check.py lists dumps a driver cannot run, by the device name vk_compute_test prints before the shader runs; check.py and run_gpu_tests.py both use it. GPUs that ran the fixture (RTX 4090, RTX 3090, Apple M5 Pro) still judge every word.
aslan2142
left a comment
There was a problem hiding this comment.
Conflicts with main in scripts/run_gpu_tests.py, with failing stale CI. Please rebase onto current main to resolve the conflict and trigger a fresh green CI pass.
(AI-assisted review.)
|
Closing this PR because the legacy C++ Vulkan runtime (and legacy Python shader compiler) is now considered deprecated in favor of the new Rust Vulkan runtime (in progress) and the Rust DX12 runtime ( |
Claimed in the coordination issue as: OLD-9908 (#14 (comment))
Depends on: #650
Replaces the carried-over draft #173. I'm the original author of old upstream PR 9908.
What and why
A GPU test in the
cs_w32_*_extformat that CI runs on llvmpipe. It covers three changes that only had CPU checks:ds_mskor_b32/ds_mskor_rtn_b32,v_add/sub_nc_i16withclamp, and the fix for ans_buffer_loadwith a constant SGPR offset. The fixture is wired intocheck.pyandscripts/run_gpu_tests.py. Its disassembly is intests/semantic/fixtures/disasm/and is checked bytests/semantic/test_late_ext_fixture.py.Depends on #650. On current
mainthis fixture crashes llvmpipe (exit -11). With the translator from #650, which is my old PR 9916 carried over by TanmaySatyam (out-of-ranges_buffer_loadreads through the heap base), it passes. So this PR should merge after #650. This PR, #650, #1447 (cs_w32_movrels64) and the other new GPU fixtures all add a name at the same place incheck.pyandrun_gpu_tests.py. Whichever lands second needs a one-line rebase.The old branch's final diff, applied on current
mainas one commit. It applied cleanly.Tested
python -I scripts/run_gpu_tests.py --filter cs_w32_late_exton this branch alone: FAIL, exit -11 (llvmpipe segfault).tools/rdna2spirv.pyfrom rdna2spirv: out-of-range s_buffer_load reads safely from heap base without branch (OLD-9916) #650: PASS. Words0x12345678 0x1234AB78 0xFFFF0001 0x7FFF 0x8000 0x8000 0 0xEEEEEEEE, as expected.python -I tests/semantic/test_late_ext_fixture.py: OK.python -I scripts/run_semantic_tests.py tests/semantic: 477 files, 6227 tests, 0 files failed.GPUs tested: llvmpipe (Mesa, LLVM 21.1.8) on Linux under WSL2
AI-assisted: yes (Claude Code)
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed. (n/a: no translator rule changes)