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

Closed
github-bot wants to merge 1 commit from gh-pr/975/head into gh-pr/975/base
Owner

@⁠pushkarreddyy on GitHub · 2026-11-24 14:36 UTC · original
pushkarreddyy:test/hle-swizzle-1d-coverage → main · +12 −0 · 1 files · 1 commits · closed without merging

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.
**@⁠pushkarreddyy** on GitHub · 2026-11-24 14:36 UTC · [original](https://github.com/Marvisak/VIctory/pull/975) `pushkarreddyy:test/hle-swizzle-1d-coverage` → `main` · +12 −0 · 1 files · 1 commits · closed without merging ### 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.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-26 04:15:31 +00:00
github-bot closed this pull request 2026-11-26 04:15:31 +00:00
Author
Owner

@⁠Zipettte on GitHub · 2026-11-24 15:13 UTC · original

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

**@⁠Zipettte** on GitHub · 2026-11-24 15:13 UTC · [original](https://github.com/Marvisak/VIctory/pull/975#issuecomment-7135651629) 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)._
Author
Owner

@⁠pushkarreddyy on GitHub · 2026-11-24 15:28 UTC · original

Thank you @⁠Zipettte for testing and verifying PR #975 on AMD Radeon RX 7700 XT!

**@⁠pushkarreddyy** on GitHub · 2026-11-24 15:28 UTC · [original](https://github.com/Marvisak/VIctory/pull/975#issuecomment-7136094502) Thank you @⁠Zipettte for testing and verifying PR #975 on AMD Radeon RX 7700 XT!
Author
Owner

@⁠DenRakEiw on GitHub · 2026-11-24 16:08 UTC · original

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

**@⁠DenRakEiw** on GitHub · 2026-11-24 16:08 UTC · [original](https://github.com/Marvisak/VIctory/pull/975#issuecomment-7137170770) 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).
Author
Owner

@⁠Marvisak on GitHub · 2026-11-25 00:29 UTC · original

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.

**@⁠Marvisak** on GitHub · 2026-11-25 00:29 UTC · [original](https://github.com/Marvisak/VIctory/pull/975#issuecomment-7148557889) 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

This discussion has been locked. Commenting is limited to contributors.
No reviewers
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.

Dependencies

No dependencies set

Reference
github/Marvisak--VIctory!975
No description provided.