Formats: reject invalid GFX10 swizzle modes for 1D textures #1607
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!1607
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/1607/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?
@zhaibingye on GitHub · 2026-11-24 19:43 UTC · original
zhaibingye:fix/gfx10-1d-swizzle→main· +31 −3 · 1 files · 1 commits · closed without mergingMain gives a 128-texel R32 1D array (3 slices) a 12,288-byte layout with SW_256B_S. AMD Addr2ComputeSurfaceInfo rejects it. Enforce the GFX10 1D mask for explicit layouts. The regression test covers IDs 0 through 27 and a height-one 2D control, with sizes verified against Navi 21 addrlib.
AMD reference:
github.com/GPUOpen-Drivers/pal@c5e800072a/src/core/imported/addrlib/src/gfx10/gfx10addrlib.h (L109-L141)The 1D expectation in pending PR #315 assumes every known mode is valid and would need updating if both land.
Verified red on main. Formats tests: 24 passed, 4 ignored. Clippy and asset policy passed. Linux HLE tests are blocked by the existing Windows-only host_resource definition.
Pull request closed