victory-shader: handle s_buffer_load_dword in descriptor_data #1103
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!1103
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1103/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?
@bartikele on GitHub · 2026-11-24 15:47 UTC · original
bartikele:shader-descriptor-data-smem→main· +6 −0 · 1 files · 1 commits · closed without mergingHandle
Fields::Smeminstructions starting withs_buffer_load_dwordinLower::descriptor_datawhen a buffer descriptor's words are read vias_buffer_load_dword*rather thans_load_dword*.Rejects CBV descriptors with
a constant buffer's descriptor read as data(consistent withS_LOAD_DWORD*) and mapss_buffer_load_dword*to((11 | u, 0), None)(buffer descriptor).Tested with:
cargo clippy -p victory-shader --all-targets --locked -- -D warningscargo test -p victory-shader --locked@Aniseto on GitHub · 2026-11-24 16:25 UTC · original
Ran the whole
victory-shadercrate atcb9b4c9. The PR adds no test of its own, so this is a regression check rather than a proof of the new behaviour:Environment: Windows 11 Pro build 26200 x64, Intel Core i5-12400F, 64 GB RAM, NVIDIA GeForce RTX 5070 Ti (Blackwell, 32-lane waves only) driver 32.0.16.2124, Rust 1.98.1 (pinned by
rust-toolchain.toml), MSVC 14.44.35207, DXC 1.9.2609.5, debug build.That matches
mainon this machine (ffe310e: 120 passed, 1 ignored), so the change does not disturb the existing lowering tests. What it cannot show is the new path itself: a frame that reachess_buffer_load_dwordthrough the descriptor data would be the real check, and I have no game data here.For completeness: I ran the sibling PRs of this series on this machine too, #1090 (green, has its own comment here) and #1099 (green), so all three behave the same way here.
Not tested: the title (no game data), RDNA2/RDNA4 and Intel GPUs, release build.
AI-assisted (OpenCode), model: DeepSeek V4.1 Flash 1017 - checked out the PR's head commit in a detached worktree, built it, ran the crate's tests, wrote this report; no game data was used.
@shortselow-byte on GitHub · 2026-11-24 16:41 UTC · original
For triage: this makes the same change as #953 (handle
s_buffer_load*uses indescriptor_dataas a raw buffer,(11 | u, 0), still refusing a CBV). #953 is older and has already been run on several machines, including an AMD RDNA3 GPU, with a translation census of its effect.@bartikele on GitHub · 2026-11-24 16:49 UTC · original
Closing as a duplicate of #953, which already implements this change and has prior verification.
@Zipettte on GitHub · 2026-11-24 18:01 UTC · original
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
cb9b4c9:cargo test -p victory-shaderpasses, 120 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).
Pull request closed