HLE: add XGSuggestSwizzleMode TEXTURE_1D branch validation (fixes #868) #975

Closed
pushkarreddyy wants to merge 1 commit from upstream-pr/975 into main
pushkarreddyy commented 2026-11-24 14:36:29 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by pushkarreddyy on 2026-11-24T14:36:29Z.


Summary

Adds regression tests validating TEXTURE_1D resolves to linear swizzle (0x100 = SWIZZLED | LINEAR), resolving #868.

Changes

  • In crates/victory-hle/src/modules/xg.rs:
    • Added assertions in suggestions_follow_the_use verifying TEXTURE_1D textures always resolve to linear swizzle per D3D12/GDK specification across default, ALLOW_RENDER_TARGET, and ALLOW_DEPTH_STENCIL flags.

Verification

  • Passes cargo test -p victory-hle.
  • Complies with Rule #1 asset policy.
<!-- greyfinch-sync:Marvisak/VIctory:issue:6584230793 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/975). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-24T14:36:29Z. --- ### Summary Adds regression tests validating `TEXTURE_1D` resolves to linear swizzle (`0x100 = SWIZZLED | LINEAR`), resolving #868. ### Changes - In `crates/victory-hle/src/modules/xg.rs`: - Added assertions in `suggestions_follow_the_use` verifying `TEXTURE_1D` textures always resolve to linear swizzle per D3D12/GDK specification across default, `ALLOW_RENDER_TARGET`, and `ALLOW_DEPTH_STENCIL` flags. ### Verification - Passes `cargo test -p victory-hle`. - Complies with Rule #1 asset policy.
mercuryVM commented 2026-11-24 15:03:37 +00:00 (Migrated from github.com)

Imported from Marvisak/VIctory. Originally posted by mercuryVM on 2026-11-24T14:39:36Z.

Review: APPROVED


Tested 78e2d19 on Windows 11, RTX 5070, MSVC: cargo test -p victory-hle 95 passed, including the extended suggestions_follow_the_use. cargo clippy -p victory-hle --all-targets is clean.

  • Test-only change: it pins XGSuggestSwizzleMode returning 0x100 (linear) for TEXTURE_1D with 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).

<!-- greyfinch-sync:Marvisak/VIctory:review:6041278123 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/975#pullrequestreview-6041278123). Originally posted by [mercuryVM](https://github.com/mercuryVM) on 2026-11-24T14:39:36Z. **Review:** APPROVED --- Tested 78e2d19 on Windows 11, RTX 5070, MSVC: `cargo test -p victory-hle` 95 passed, including the extended `suggestions_follow_the_use`. `cargo clippy -p victory-hle --all-targets` is clean. - Test-only change: it pins `XGSuggestSwizzleMode` returning `0x100` (linear) for `TEXTURE_1D` with 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).
Zipettte commented 2026-11-24 16:05:05 +00:00 (Migrated from github.com)

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-hle passes, 95 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed).

Tested with AI assistance (Claude).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7135651629 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/975#issuecomment-7135651629). Originally posted by [Zipettte](https://github.com/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-hle` passes, 95 passed / 0 failed. Workspace baseline on main (ffe310e) is green on the same machine (342 passed). _Tested with AI assistance (Claude)._
pushkarreddyy commented 2026-11-24 16:05:13 +00:00 (Migrated from github.com)

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!

<!-- greyfinch-sync:Marvisak/VIctory:comment:7136094502 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/975#issuecomment-7136094502). Originally posted by [pushkarreddyy](https://github.com/pushkarreddyy) on 2026-11-24T15:28:45Z. --- Thank you @Zipettte for testing and verifying PR #975 on AMD Radeon RX 7700 XT!
DenRakEiw commented 2026-11-24 17:04:17 +00:00 (Migrated from github.com)

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).

<!-- greyfinch-sync:Marvisak/VIctory:comment:7137170770 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/975#issuecomment-7137170770). Originally posted by [DenRakEiw](https://github.com/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).
upstream-sync closed this pull request 2026-11-25 01:05:07 +00:00
Marvisak commented 2026-11-25 01:07:54 +00:00 (Migrated from github.com)

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.

<!-- greyfinch-sync:Marvisak/VIctory:comment:7148557889 --> Imported from [Marvisak/VIctory](https://github.com/Marvisak/VIctory/pull/975#issuecomment-7148557889). Originally posted by [Marvisak](https://github.com/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

Sign in to join this conversation.
No reviewers
No labels
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference
Marvisak/VIctory!975
No description provided.