Shaders: s_atc_probe's immediate is not a register #1021
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1021
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1021/head"
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?
@CaravelaLabs on GitHub · 2026-11-24 15:08 UTC · original
CaravelaLabs:caravela/smem-atc-probe→main· +100 −9 · 2 files · 1 commits · merged 2026-11-25 00:21 UTCs_atc_probeands_atc_probe_bufferwere decoded as ordinary scalar loads, so the 7-bit immediate became a register and the buffer resource was 2 dwords instead of 4.On main
ffe310e,llvm-mc -arch=amdgcn -mcpu=gfx1030reads0xF4981FF4 0x0A000001ass_atc_probe 0x7f, s[104:105], s5 offset:0x1. The printer produceds_atc_probe exec_hi, s[104:105], s5 offset:0x000001.s_atc_probe_buffer 7, s[8:11], 0x20was printed withs[8:9].LLVM's probe form takes an immediate in that field, a 2-dword address or a 4-dword buffer resource, and no GLC/DLC operand (those bits are ignored). Translation still rejects these two opcodes, so this is the disassembly and the decoded fields, not a miscompiled shader. Ordinary
s_load/s_buffer_loadtext is unchanged.The new test fails on main (
s7where the immediate is7) and passes with this change. Shader library tests: 97 passed, 0 failed, 1 ignored. Windows clippy-D warningson the workspace, with and without--all-features, is clean.AI-assisted; tests run on this machine.
@Zipettte on GitHub · 2026-11-24 15:40 UTC · original
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
3d71ad1:cargo test -p victory-shaderpasses, 121 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).