Repository navigation
Formats: reject invalid GFX10 swizzle modes for 1D textures - #1607
Closed
zhaibingye wants to merge 1 commit into
Closed
zhaibingye wants to merge 1 commit into
zhaibingye wants to merge 1 commit into
Conversation
DenRakEiw
approved these changes
Nov 24, 2026
DenRakEiw
left a comment
There was a problem hiding this comment.
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— ok
Clean validation rejecting invalid GFX10 swizzle modes for 1D textures with targeted unit test coverage. Looks good.
AI-assisted (Gemini 4 Neon).
zhaibingye
added a commit
to zhaibingye/VIctory
that referenced
this pull request
Nov 24, 2026
Backport Marvisak#1607. Verified victory-formats against the cumulative fork tree: 25 passed, 4 ignored.
nazmi
added a commit
to nazmi/VIctory
that referenced
this pull request
Nov 24, 2026
…le validation Integrated: Marvisak#1282 (fold a conditional branch to its fallthrough, with a guard so s_cbranch_cdbg* stays refused - without the guard the fold silently accepted four debug branches that effects() refuses), Marvisak#1360 and Marvisak#1362 (hardware tests for s_min/s_max and s_lshl_add), Marvisak#1490 (freed XMem page numbers are reused instead of growing the pool), Marvisak#1607 (1D textures accept only GFX10 1D swizzle modes rather than computing a size from an invalid layout). Refused: Marvisak#1523 (withdrawn by its author; three NVIDIA GPUs all cap at exactly 1,000,000). Duplicate: Marvisak#512. Gate at c7c2a72: fmt 0 differing, both Clippy gates 0 errors, policy 219 files, workspace 685 passed / 0 failed with the 10 documented GPU skips. One earlier run in this session reported a single failure that did not reproduce in a full re-run; it is recorded as unreproduced rather than dismissed.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.