HLE: add XGSuggestSwizzleMode TEXTURE_1D branch validation (fixes #868) #975
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/975"
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 pushkarreddyy on 2026-11-24T14:36:29Z.
Summary
Adds regression tests validating
TEXTURE_1Dresolves to linear swizzle (0x100 = SWIZZLED | LINEAR), resolving #868.Changes
crates/victory-hle/src/modules/xg.rs:suggestions_follow_the_useverifyingTEXTURE_1Dtextures always resolve to linear swizzle per D3D12/GDK specification across default,ALLOW_RENDER_TARGET, andALLOW_DEPTH_STENCILflags.Verification
cargo test -p victory-hle.Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T14:39:36Z.
Review: APPROVED
Tested
78e2d19on Windows 11, RTX 5070, MSVC:cargo test -p victory-hle95 passed, including the extendedsuggestions_follow_the_use.cargo clippy -p victory-hle --all-targetsis clean.XGSuggestSwizzleModereturning0x100(linear) forTEXTURE_1Dwith no flags, with render target and with depth stencil. That matches the existing branch, so it's a useful regression guard for #868.AI-assisted (Claude Code).
Imported from Marvisak/VIctory. Originally posted by Zipettte on 2026-11-24T15:13:04Z.
Tested on AMD Radeon RX 7700 XT (RDNA3, gfx1101), driver 32.0.32029.2010, Windows 11, Rust 1.98.1 MSVC at
78e2d19: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).
Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-24T15:28:45Z.
Thank you @Zipettte for testing and verifying PR #975 on AMD Radeon RX 7700 XT!
Imported from Marvisak/VIctory. Originally posted by DenRakEiw on 2026-11-24T16:08:00Z.
Triage note: this overlaps with #957, which also adds a unit test covering the \TEXTURE_1D\ branch of \XGSuggestSwizzleMode\ (#868). Linking both for maintainer triage. AI-assisted (Gemini 4 Neon).
Imported from Marvisak/VIctory. Originally posted by Marvisak on 2026-11-25T00:29:09Z.
Automated triage for the maintainers. Closing because another open pull request covers the same change.
See #957. Same 1D-texture test as #957, longer and no better.
If this is mistaken, reply here with what was missed (or push a change and say so) and it will be looked at again. Thank you for the contribution.
Pull request closed