Formats: reject invalid GFX10 swizzle modes for 1D textures #1607

Closed
github-bot wants to merge 1 commit from gh-pr/1607/head into gh-pr/1607/base
Owner

@⁠zhaibingye on GitHub · 2026-11-24 19:43 UTC · original
zhaibingye:fix/gfx10-1d-swizzle → main · +31 −3 · 1 files · 1 commits · closed without merging

Main 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.

**@⁠zhaibingye** on GitHub · 2026-11-24 19:43 UTC · [original](https://github.com/Marvisak/VIctory/pull/1607) `zhaibingye:fix/gfx10-1d-swizzle` → `main` · +31 −3 · 1 files · 1 commits · closed without merging Main 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: https://github.com/GPUOpen-Drivers/pal/blob/c5e800072a32f68b6ccc4422936d96167c6e0728/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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:38:10 +00:00
github-bot closed this pull request 2026-11-26 04:38:10 +00:00

Pull request closed

This discussion has been locked. Commenting is limited to contributors.
No reviewers
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!1607
No description provided.