Shaders: lower native 16-bit buffer stores #426
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!426
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/426/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?
@ToxicmaggotRP on GitHub · 2026-11-24 03:15 UTC · original
ToxicmaggotRP:shader/buffer-store-short-dxil→main· +151 −6 · 3 files · 5 commits · closed without mergingRefs #274.
GFX10 exposes
buffer_store_shortandbuffer_store_short_d16_hi. The opcode table already decodes them, but the buffer lowering rejected both because it only handled dword and typed-format stores.rawBufferStore.i16, preserving the 2-byte write width.Validation status
cargo test -p victory-shader: not run; Rust toolchain unavailable in this environment.AI ASSISTED (CHATGPT)
@DaviTostes on GitHub · 2026-11-24 03:36 UTC · original
Verified
4793ed5on Arch Linux x86_64 (rustc 1.98.1,cargo test -p victory-shader): 56 passed, 0 failed, 0 ignored.Not covered: Windows/Wine execution of the new store paths (shader tests here are parser/emit only) and title behaviour (no game data on this machine).
@DaviTostes on GitHub · 2026-11-24 03:50 UTC · original
Re-checked the new head
e421755(“test(shader): verify short stores preserve adjacent halfwords”) on Arch Linux x86_64 (rustc 1.98.1):cargo test -p victory-shader56 passed, 0 failed, 0 ignored — same as4793ed5.@slint6614-dev on GitHub · 2026-11-24 10:16 UTC · original
AMD hardware check, Windows 11, Adrenalin driver: RX 9070 (RDNA4) and Ryzen 9600X iGPU (RDNA2, gfx1036), each picked as the hardware device of
run_cases(local adapter-selection patch, not part of this PR);cargo test -p victory-shader --release valu_testsat the PR head. Negative control: the PR's non-test files reverted to its merge base, its new tests kept.Both new tests fail on both AMD GPUs at the PR head, and the failure does not come from the hardware. The emitted module is rejected by the validator before it reaches the GPU:
The module uses a feature whose shader flag (0x20 here) is not declared. The same failure happens with
dxil.dllfrom Windows SDK 10.0.26100. Where nodxil.dllis found the check is skipped, which may be why it passed elsewhere.Pull request closed