From b2e23f834cec1afc35e9543bf0a1457b75dca97a Mon Sep 17 00:00:00 2001 From: Luiz Neves Date: Tue, 24 Nov 2026 11:27:21 -0300 Subject: [PATCH] HLE: test that XGSuggestSwizzleMode picks linear for a 1D texture (cherry picked from commit 246ecea9631acfe1b694421c6c600e3981a1f752) --- crates/victory-hle/src/modules/xg.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/crates/victory-hle/src/modules/xg.rs b/crates/victory-hle/src/modules/xg.rs index 56011ec..eb78ec5 100644 --- a/crates/victory-hle/src/modules/xg.rs +++ b/crates/victory-hle/src/modules/xg.rs @@ -665,6 +665,10 @@ mod tests { d.flags = ALLOW_DEPTH_STENCIL; XGSuggestSwizzleMode(&d, 0, &mut out); assert_eq!(out, 0x118); + // A 1D texture has no tiled layout, whatever its use. + d.dimension = TEXTURE_1D; + XGSuggestSwizzleMode(&d, 0, &mut out); + assert_eq!(out, 0x100); } /// The title's calls: layout, then a copy in and out of each mip.