HLE: test that XGSuggestSwizzleMode picks linear for a 1D texture #957
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/957"
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 LouisRiverstone on 2026-11-24T14:27:24Z.
Fixes #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
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T14:32:56Z.
Review: APPROVED
Tested merged cleanly onto
main(ffe310e) on Windows 11 x64 (Rust 1.98.1 MSVC):cargo test -p victory-hle: 94 passed, 0 failed (plusno_dll_planting: 1 passed)cargo clippy -p victory-hle --all-targets: 0 warningscargo xtask policy: okClean coverage for the
TEXTURE_1Dbranch inXGSuggestSwizzleMode. Approving.AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by MichaelSmithAI on 2026-11-24T14:41:50Z.
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.
Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-24T14:43:54Z.
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!
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T15:40:30Z.
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).