Formats: reject invalid GFX10 swizzle modes for 1D textures #1606
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1607"
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?
Imported from Marvisak/VIctory. Originally posted by zhaibingye on 2026-11-24T19:43:55Z.
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.
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T19:56:53Z.
Review: APPROVED
Verified locally merged onto
origin/main(Windows 11 x64, Rust 1.98.1 MSVC):cargo test -p victory-formats— 24 passed, 0 failed (4 ignored), includingone_dimensional_textures_accept_only_gfx10_1d_swizzlescargo clippy -p victory-formats --all-targets— 0 warningscargo xtask policy— okClean validation rejecting invalid GFX10 swizzle modes for 1D textures with targeted unit test coverage. Looks good.
AI-assisted (Gemini 4 Neon).
upstream-sync referenced this pull request2026-11-25 11:05:31 +00:00
upstream-sync referenced this pull request2026-11-25 11:05:33 +00:00
upstream-sync referenced this pull request2026-11-25 11:05:34 +00:00
Pull request closed