HLE: test that XGSuggestSwizzleMode picks linear for a 1D texture #957
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!957
Loading…
Reference in a new issue
No description provided.
Delete branch "gh-pr/957/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?
@LouisRiverstone on GitHub · 2026-11-24 14:27 UTC · original
LouisRiverstone:hle/swizzle-1d-test→main· +4 −0 · 1 files · 1 commits · merged 2026-11-25 00:12 UTCFixes #868.
suggestions_follow_the_usecovered three of the four branches ofsuggested(). It never setdimensiontoTEXTURE_1D, the first check, so removing or changing that branch would pass every test.One added assertion: a
TEXTURE_1Ddescriptor gives0x100(SWIZZLED | LINEAR).Test only, no production change.
Verify:
cargo test -p victory-hle suggestions_follow_the_use🤖 Generated with Claude Code
@MichaelSmithAI on GitHub · 2026-11-24 14:41 UTC · original
An additional Win64/Wine check passed on
246ecea. For a three-layer, nine-texel RGBA8 1D array,XGSuggestSwizzleModereturned0x100. Passing that layout to the guest texture address computer produced four automatic mip levels. We wrote distinct byte patterns at widths 9, 4, 2 and 1 in every layer before reading any of them back. All 12 subresources retained their expected bytes through the guest copy slots. Writing the whole array first also checks for overlap between the tested layers and mip levels.All five focused XG tests passed. This checks agreement between VIctory’s selector and its copy path. The fixture has no independent console layout measurement.
@pushkarreddyy on GitHub · 2026-11-24 14:43 UTC · original
Thanks @LouisRiverstone and @MichaelSmithAI for the validation!
Just a polite note that Issue #868 was claimed earlier (claim on #868) with our PR open at #975, covering linear swizzle assertions for
TEXTURE_1Dacross default, render target, and depth-stencil flag combinations.Would love any additional verification on PR #975 to help @Marvisak during the next merge review!
@Zipettte on GitHub · 2026-11-24 15:40 UTC · original
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
246ecea:cargo test -p victory-hlepasses, 95 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).Tested with AI assistance (Claude).