Shaders: GFX10 FLAT offsets ignore bit 11 #1636
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!1636
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1636/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?
@davutsimsekk on GitHub · 2026-11-24 20:13 UTC · original
davutsimsekk:fix/flat-offset-twelve-bits→main· +17 −0 · 2 files · 1 commits · merged 2026-11-25 00:23 UTCGFX10 FLAT offsets are 11-bit and unsigned; the hardware ignores bit 11, unlike GLOBAL/SCRATCH which use a 12-bit signed offset. The decoder already masked with
0x7FF, but nothing said why and nothing pinned it.This adds the comment and a regression test:
flat_load_dword v0, v[1:2]with0xDC30_0800decodes as offset 0, and0xDC30_0FFFas 0x7FF. No behaviour change.Test
flat_offsets_ignore_bit_eleveningfx10::tests.cargo test -p victory-shader --lib: 121 passed, 0 failed, 1 ignoredcargo clippy -p victory-shader --all-targets --locked -- -D warnings: cleanrustfmt --edition 2024 --checkon both changed files: clean@geiyiliyabumo on GitHub · 2026-11-24 20:46 UTC · original
Verified head
ba2c202merged cleanly ontomain(ffe310e) on Windows 11 / AMD Radeon RX 9060 XT (RDNA4,gfx1200) + WARP / Rust 1.98.1 MSVC:cargo test -p victory-shader --lib: 121 passed, 0 failed, 1 ignored (new FLAT 12-bit offset test + full GPU/WARP shader suite pass).cargo clippy -p victory-shader --all-targets -- -D warnings: clean.AI-assisted; synthetic tests only, no game files.
@davutsimsekk on GitHub · 2026-11-24 21:12 UTC · original
Thanks, you're right. I kept \