Textures: XOR modes detiled from one address part per axis (x3.8-4.5) #2543

Open
github-bot wants to merge 1 commit from github-bot/gh-2543 into main AGit
Owner

@⁠Alilou92 on GitHub · 2026-11-29 14:02 UTC · original
Alilou92:perf/detile-xor → main · +162 −2 · 1 files · 1 commits · open

What it changes

CPU detiling of the XOR modes (walk_xor). They always take the PC path: the card detiling (VICTORY_GPU_DETILE) does not handle them.

Each 16-byte run recomputed its whole address with xor_offset, a 16-step parity loop. An address bit is the parity of masked x, y and z bits, so the offset is the XOR of one part per axis: z's once a slice, y's once a row, x's from two 256-entry tables (XorAxes). Nearly every run of these modes is 16 bytes, so those take a fixed copy (copy_fixed), and the loop shifts and masks instead of dividing (block widths and runs are powers of two). Every run is still copied once, to the same place.

Only walk_xor and two helpers; the other modes are untouched (#623 works on those).

How it was tested

  • GPU and profile: not applicable (CPU-side, no game run)
  • Byte-identical with main, both detile and tile: 20,436 random layouts, 16,490 of them XOR (both consoles' pipe configurations, odd sizes, mips and tails, arrays, 3D)
  • cargo test -p victory-formats: texture tests pass (the 3 BCPack oracle failures on main are fixed in #2419); clippy clean; the changed lines need no rustfmt change; cargo xtask policy ok
  • Applies cleanly on top of #623 and #2468, which also touch texture.rs
  • 4096×4096, Series X pipes (Linux VM, 2 vCPU, ±10-20 % between runs):
Mode Before (GB/s) After (GB/s) Gain
RGBA8 64KB_S_X 0.57 2.26 ×4.0
RGBA8 64KB_D_X 0.57 2.18 ×3.8
BC7 64KB_S_X 0.85 3.65 ×4.3
BC1 64KB_S_X 0.87 3.92 ×4.5
R8 64KB_S_X 0.66 2.95 ×4.5
RGBA16F 64KB_R_X 0.75 2.83 ×3.8

Not measured in game. Could someone with the game paste a few texture detiling per frame lines from their play log, before and after (ideally while driving)? They give the ms and MB per frame by swizzle mode, so the real gain.

Checked for overlap

  • I searched the open pull requests for the same issue and for the files this touches. Related: #623 (non-XOR detiling), #2468 (XOR coordinates), #2419

🤖 Generated with Claude Code

**@⁠Alilou92** on GitHub · 2026-11-29 14:02 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2543) `Alilou92:perf/detile-xor` → `main` · +162 −2 · 1 files · 1 commits · open ## What it changes CPU detiling of the XOR modes (`walk_xor`). They always take the PC path: the card detiling (`VICTORY_GPU_DETILE`) does not handle them. Each 16-byte run recomputed its whole address with `xor_offset`, a 16-step parity loop. An address bit is the parity of masked x, y and z bits, so the offset is the XOR of one part per axis: z's once a slice, y's once a row, x's from two 256-entry tables (`XorAxes`). Nearly every run of these modes is 16 bytes, so those take a fixed copy (`copy_fixed`), and the loop shifts and masks instead of dividing (block widths and runs are powers of two). Every run is still copied once, to the same place. Only `walk_xor` and two helpers; the other modes are untouched (#623 works on those). ## How it was tested - GPU and profile: not applicable (CPU-side, no game run) - Byte-identical with `main`, both `detile` and `tile`: 20,436 random layouts, 16,490 of them XOR (both consoles' pipe configurations, odd sizes, mips and tails, arrays, 3D) - `cargo test -p victory-formats`: texture tests pass (the 3 BCPack oracle failures on `main` are fixed in #2419); clippy clean; the changed lines need no rustfmt change; `cargo xtask policy` ok - Applies cleanly on top of #623 and #2468, which also touch `texture.rs` - 4096×4096, Series X pipes (Linux VM, 2 vCPU, ±10-20 % between runs): | Mode | Before (GB/s) | After (GB/s) | Gain | |---|---|---|---| | RGBA8 64KB_S_X | 0.57 | 2.26 | ×4.0 | | RGBA8 64KB_D_X | 0.57 | 2.18 | ×3.8 | | BC7 64KB_S_X | 0.85 | 3.65 | ×4.3 | | BC1 64KB_S_X | 0.87 | 3.92 | ×4.5 | | R8 64KB_S_X | 0.66 | 2.95 | ×4.5 | | RGBA16F 64KB_R_X | 0.75 | 2.83 | ×3.8 | Not measured in game. Could someone with the game paste a few `texture detiling per frame` lines from their play log, before and after (ideally while driving)? They give the ms and MB per frame by swizzle mode, so the real gain. ## Checked for overlap - [x] I searched the open pull requests for the same issue and for the files this touches. Related: #623 (non-XOR detiling), #2468 (XOR coordinates), #2419 🤖 Generated with [Claude Code](https://claude.com/claude-code)
walk_xor recomputed the whole address of every 16-byte run with
xor_offset, a 16-step parity loop. An address bit is the parity of masked
x, y and z bits, so the offset is the XOR of one part per axis: z's once
a slice, y's once a row, x's from two 256-entry tables. Nearly every run
of these modes is 16 bytes, so those take a fixed copy, and block widths
and runs being powers of two, the loop shifts and masks instead of
dividing.

Byte for byte as before, detile and tile, on 20,436 random layouts
(16,490 XOR, both consoles' pipe configurations, mips and tails, arrays,
3D). 4096x4096 on a 2-vCPU VM: 0.57 to 2.26 GB/s (RGBA8 64KB_S_X),
0.85 to 3.65 (BC7 64KB_S_X), 3.8 to 4.5 times across the XOR modes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UjaiBc7hr6kH3FowMKVt6Y
github-bot locked as GitHub sync and limited conversation to collaborators 2026-11-29 14:06:52 +00:00
Author
Owner

@⁠davemathews12 on GitHub · 2026-11-30 05:14 UTC · original

I read the change against the per-bit xor_offset and the change looks correct:

  • Splitting the address by axis is exact. Each address bit is a parity, so xor_offset(x, y, z) == part_x ^ part_y ^ part_z.
  • The block offset can be added safely. It sits above the parity bits, so adding it is the same as OR-ing it in.
  • The mip tail is handled. tail_x/tail_y are added before both parts, as xor_address does.
  • The z part uses the full slice index (first + z).
  • Using only x bits 0–15 is safe. The pattern masks are u16, so no higher bit matters.

Two suggestions:

  1. Tests. The PR changes the XOR copy path but adds no test for it. Two tests that pin it are attached below:

    • xor_tables_split_the_address_by_axis: the split, checked for every pattern of both consoles at every element size.
    • xor_copies_match_offset_for_every_mode_and_element_size: detile and tile checked element by element against offset(). It covers every XOR mode × both consoles × 1–16-byte elements, 2D arrays and 3D, full mip chains, and padded pitches.

    Both tests are planted-bug-checked: dropping the tail's y, or using | for ^, makes them fail.

  2. Build XorAxes once per layout, not once per call. walk_xor runs once per mip, and each call fills two 256-entry tables. The tables depend only on (pattern, bits), so configure_xor could build them once and the Layout could keep them.

For scale: the same per-axis idea as a column table, measured on a 4-vCPU Xeon (Linux, synthetic textures, whole mip chains) against main:

  • Detile: 4.0× faster for BC7 2048² 64KB_S_X, 5–7× for RGBA8 2048² 64KB_R_X.
  • Correctness: output identical in all 28 XOR cases.
  • No gain from fixed-size copies: for 16-byte runs it measured no better than the plain copy, and slower for 1-byte formats.

Note that #3524 rewrites the same function, so only one of the two can merge as is.

The two tests (paste into texture.rs's mod tests)
// Two tests for `crates/victory-formats/src/texture.rs`'s `mod tests` (they use
// its private `XOR_PATTERNS`, `xor_offset`, `Desc` and `Layout`).

    /// What `walk_xor` builds on: in every XOR pattern of both consoles an
    /// address is the XOR of a part from x alone and a part from y and z,
    /// and stays inside the block.
    #[test]
    fn xor_tables_split_the_address_by_axis() {
        let mut state = 0x2545_f491_4f6c_dd1du64;
        let mut next = || {
            state ^= state << 13;
            state ^= state >> 7;
            state ^= state << 17;
            state as u32
        };
        for console in &XOR_PATTERNS {
            for family in console {
                for pattern in family {
                    for bits in [12, 16] {
                        for _ in 0..2000 {
                            let (x, y, z) = (next() & 0xffff, next() & 0xffff, next() & 0xffff);
                            let whole = xor_offset(pattern, bits, x, y, z);
                            assert!(whole < 1 << bits);
                            assert_eq!(
                                whole,
                                xor_offset(pattern, bits, x, 0, 0) ^ xor_offset(pattern, bits, 0, y, z),
                                "({x}, {y}, {z}) of {bits} bits"
                            );
                        }
                    }
                }
            }
        }
    }

    /// The copies of every XOR mode, on both consoles and for every element
    /// size, put each element where [`Layout::offset`] says (which works its
    /// addresses out bit by bit), in both directions: odd sizes, whole mip
    /// chains with their tails, arrays and 3D, rows and depth slices padded.
    #[test]
    fn xor_copies_match_offset_for_every_mode_and_element_size() {
        let modes = [
            Swizzle::SW_4KB_S_X,
            Swizzle::SW_4KB_D_X,
            Swizzle::SW_64KB_S_T,
            Swizzle::SW_64KB_D_T,
            Swizzle::SW_64KB_Z_X,
            Swizzle::SW_64KB_S_X,
            Swizzle::SW_64KB_D_X,
            Swizzle::SW_64KB_R_X,
        ];
        let shapes = [
            (Dimension::Tex2d, 75u32, 43u32, 2u32),
            (Dimension::Tex2d, 260, 9, 1),
            (Dimension::Tex3d, 37, 19, 11),
        ];
        let mut checked = 0;
        for config in [PipeConfig::Pipes8Packers4, PipeConfig::Pipes32Packers8] {
            for swizzle in modes {
                for (dimension, width, height, depth) in shapes {
                    for log2 in 0..5u32 {
                        let deep = if dimension == Dimension::Tex3d { depth } else { 1 };
                        let desc = Desc {
                            dimension,
                            width,
                            height,
                            depth,
                            mips: 32 - width.max(height).max(deep).leading_zeros(),
                            element_bytes: 1 << log2,
                            block: 1,
                            samples: 1,
                            swizzle,
                        };
                        let Ok(mut layout) = Layout::new(&desc) else {
                            continue;
                        };
                        layout.configure_xor(config);
                        if !layout.addressable() {
                            continue;
                        }
                        let n = desc.element_bytes as usize;
                        let fill = |i: usize| ((i as u64).wrapping_mul(0x9e37_79b9_7f4a_7c15) >> 56) as u8;
                        let source: Vec<u8> = (0..layout.size as usize).map(fill).collect();
                        let slices = if dimension == Dimension::Tex3d { 1 } else { depth };
                        let mut tiled = vec![0u8; layout.size as usize];
                        for mip in 0..desc.mips {
                            let m = layout.mips[mip as usize];
                            let pitch = m.width as usize * n + 24;
                            let slab = pitch * m.height as usize + 40;
                            for slice in 0..slices {
                                let mut linear = vec![0u8; slab * m.depth as usize];
                                layout.detile(&source, mip, slice, &mut linear, pitch, slab).unwrap();
                                for z in 0..m.depth {
                                    for y in 0..m.height {
                                        for x in 0..m.width {
                                            let at = layout.offset(mip, x, y, slice + z).unwrap() as usize;
                                            let back = z as usize * slab + y as usize * pitch + x as usize * n;
                                            assert_eq!(
                                                linear[back..back + n],
                                                source[at..at + n],
                                                "detile {config:?} {desc:?} mip {mip} ({x}, {y}, {})",
                                                slice + z
                                            );
                                        }
                                    }
                                }
                                layout.tile(&mut tiled, mip, slice, &linear, pitch, slab).unwrap();
                            }
                        }
                        // Every element went back where it came from.
                        for mip in 0..desc.mips {
                            let m = &layout.mips[mip as usize];
                            let zs = if dimension == Dimension::Tex3d { m.depth } else { depth };
                            for z in 0..zs {
                                for y in 0..m.height {
                                    for x in 0..m.width {
                                        let at = layout.offset(mip, x, y, z).unwrap() as usize;
                                        assert_eq!(
                                            tiled[at..at + n],
                                            source[at..at + n],
                                            "tile {config:?} {desc:?} mip {mip} ({x}, {y}, {z})"
                                        );
                                    }
                                }
                            }
                        }
                        checked += 1;
                    }
                }
            }
        }
        // 2 consoles x 8 modes x 5 sizes in 2D, twice, and the 3D modes.
        assert!(checked >= 160, "only {checked} layouts addressable");
    }
**@⁠davemathews12** on GitHub · 2026-11-30 05:14 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2543#issuecomment-7269482019) I read the change against the per-bit `xor_offset` and the change looks **correct**: - **Splitting the address by axis is exact.** Each address bit is a parity, so `xor_offset(x, y, z) == part_x ^ part_y ^ part_z`. - **The block offset can be added safely.** It sits above the parity bits, so adding it is the same as OR-ing it in. - **The mip tail is handled.** `tail_x`/`tail_y` are added before both parts, as `xor_address` does. - **The z part uses the full slice index** (`first + z`). - **Using only x bits 0–15 is safe.** The pattern masks are `u16`, so no higher bit matters. Two suggestions: 1. **Tests.** The PR changes the XOR copy path but adds no test for it. Two tests that pin it are attached below: - **`xor_tables_split_the_address_by_axis`:** the split, checked for every pattern of both consoles at every element size. - **`xor_copies_match_offset_for_every_mode_and_element_size`:** detile and tile checked element by element against `offset()`. It covers every XOR mode × both consoles × 1–16-byte elements, 2D arrays and 3D, full mip chains, and padded pitches. Both tests are planted-bug-checked: dropping the tail's y, or using `|` for `^`, makes them fail. 2. **Build `XorAxes` once per layout, not once per call.** `walk_xor` runs once per mip, and each call fills two 256-entry tables. The tables depend only on `(pattern, bits)`, so `configure_xor` could build them once and the `Layout` could keep them. For scale: the same per-axis idea as a column table, measured on a 4-vCPU Xeon (Linux, synthetic textures, whole mip chains) against `main`: - **Detile:** 4.0× faster for BC7 2048² `64KB_S_X`, 5–7× for RGBA8 2048² `64KB_R_X`. - **Correctness:** output identical in all 28 XOR cases. - **No gain from fixed-size copies:** for 16-byte runs it measured no better than the plain copy, and slower for 1-byte formats. Note that #3524 rewrites the same function, so only one of the two can merge as is. <details><summary>The two tests (paste into texture.rs's <code>mod tests</code>)</summary> ```rust // Two tests for `crates/victory-formats/src/texture.rs`'s `mod tests` (they use // its private `XOR_PATTERNS`, `xor_offset`, `Desc` and `Layout`). /// What `walk_xor` builds on: in every XOR pattern of both consoles an /// address is the XOR of a part from x alone and a part from y and z, /// and stays inside the block. #[test] fn xor_tables_split_the_address_by_axis() { let mut state = 0x2545_f491_4f6c_dd1du64; let mut next = || { state ^= state << 13; state ^= state >> 7; state ^= state << 17; state as u32 }; for console in &XOR_PATTERNS { for family in console { for pattern in family { for bits in [12, 16] { for _ in 0..2000 { let (x, y, z) = (next() & 0xffff, next() & 0xffff, next() & 0xffff); let whole = xor_offset(pattern, bits, x, y, z); assert!(whole < 1 << bits); assert_eq!( whole, xor_offset(pattern, bits, x, 0, 0) ^ xor_offset(pattern, bits, 0, y, z), "({x}, {y}, {z}) of {bits} bits" ); } } } } } } /// The copies of every XOR mode, on both consoles and for every element /// size, put each element where [`Layout::offset`] says (which works its /// addresses out bit by bit), in both directions: odd sizes, whole mip /// chains with their tails, arrays and 3D, rows and depth slices padded. #[test] fn xor_copies_match_offset_for_every_mode_and_element_size() { let modes = [ Swizzle::SW_4KB_S_X, Swizzle::SW_4KB_D_X, Swizzle::SW_64KB_S_T, Swizzle::SW_64KB_D_T, Swizzle::SW_64KB_Z_X, Swizzle::SW_64KB_S_X, Swizzle::SW_64KB_D_X, Swizzle::SW_64KB_R_X, ]; let shapes = [ (Dimension::Tex2d, 75u32, 43u32, 2u32), (Dimension::Tex2d, 260, 9, 1), (Dimension::Tex3d, 37, 19, 11), ]; let mut checked = 0; for config in [PipeConfig::Pipes8Packers4, PipeConfig::Pipes32Packers8] { for swizzle in modes { for (dimension, width, height, depth) in shapes { for log2 in 0..5u32 { let deep = if dimension == Dimension::Tex3d { depth } else { 1 }; let desc = Desc { dimension, width, height, depth, mips: 32 - width.max(height).max(deep).leading_zeros(), element_bytes: 1 << log2, block: 1, samples: 1, swizzle, }; let Ok(mut layout) = Layout::new(&desc) else { continue; }; layout.configure_xor(config); if !layout.addressable() { continue; } let n = desc.element_bytes as usize; let fill = |i: usize| ((i as u64).wrapping_mul(0x9e37_79b9_7f4a_7c15) >> 56) as u8; let source: Vec<u8> = (0..layout.size as usize).map(fill).collect(); let slices = if dimension == Dimension::Tex3d { 1 } else { depth }; let mut tiled = vec![0u8; layout.size as usize]; for mip in 0..desc.mips { let m = layout.mips[mip as usize]; let pitch = m.width as usize * n + 24; let slab = pitch * m.height as usize + 40; for slice in 0..slices { let mut linear = vec![0u8; slab * m.depth as usize]; layout.detile(&source, mip, slice, &mut linear, pitch, slab).unwrap(); for z in 0..m.depth { for y in 0..m.height { for x in 0..m.width { let at = layout.offset(mip, x, y, slice + z).unwrap() as usize; let back = z as usize * slab + y as usize * pitch + x as usize * n; assert_eq!( linear[back..back + n], source[at..at + n], "detile {config:?} {desc:?} mip {mip} ({x}, {y}, {})", slice + z ); } } } layout.tile(&mut tiled, mip, slice, &linear, pitch, slab).unwrap(); } } // Every element went back where it came from. for mip in 0..desc.mips { let m = &layout.mips[mip as usize]; let zs = if dimension == Dimension::Tex3d { m.depth } else { depth }; for z in 0..zs { for y in 0..m.height { for x in 0..m.width { let at = layout.offset(mip, x, y, z).unwrap() as usize; assert_eq!( tiled[at..at + n], source[at..at + n], "tile {config:?} {desc:?} mip {mip} ({x}, {y}, {z})" ); } } } } checked += 1; } } } } // 2 consoles x 8 modes x 5 sizes in 2D, twice, and the 3D modes. assert!(checked >= 160, "only {checked} layouts addressable"); } ``` </details>
Author
Owner

@⁠dyshay on GitHub · 2026-11-30 05:50 UTC · original

Merged into our fork's integration branch for testing (dyshay/VIctory-NVIDIA, branch janus-prs). I read the full diff first: no network access, process spawning, binaries, build or dependency changes, or game data. It builds with --profile diag --features diagnostics, and the CPU tests of the touched crates pass. A run on an RTX 4090 is queued (Series S with ray tracing, DLSS Quality). Frame times will follow here.

**@⁠dyshay** on GitHub · 2026-11-30 05:50 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2543#issuecomment-7270048045) Merged into our fork's integration branch for testing ([dyshay/VIctory-NVIDIA](https://github.com/dyshay/VIctory-NVIDIA/tree/janus-prs), branch `janus-prs`). I read the full diff first: no network access, process spawning, binaries, build or dependency changes, or game data. It builds with `--profile diag --features diagnostics`, and the CPU tests of the touched crates pass. A run on an RTX 4090 is queued (Series S with ray tracing, DLSS Quality). Frame times will follow here.
Author
Owner

@⁠Alilou92 on GitHub · 2026-11-30 10:15 UTC · original · reviewed

Thanks for the review and for the independent numbers.

Reproduced here (2048², detile, Linux VM, 2 vCPU, best of 10, byte-identical outputs):

Case Series S Series X
BC7 64KB_S_X ×5.0 ×4.6
RGBA8 64KB_R_X ×5.3 ×5.1
RGBA8 64KB_S_X ×5.5 ×5.3
BC1 64KB_D_X ×4.5 ×4.5

On fixed-size copies, this machine sees a steady gain: +12 to +21 % over the plain copy in all 8 cases. It likely depends on the CPU (fast short rep movsb/memcpy would close the gap), so I'd keep it since it costs nothing where it doesn't help.

I'll add the two tests you suggested and build the XOR tables once per pattern (a static cache, as shared_pattern does for the other modes).

On #3524: it uses the same factorisation, bundled with four unrelated changes. This PR is only walk_xor (one file), opened earlier, with byte-for-byte checks on 20,436 layouts. Happy to go with whichever the maintainer prefers.

@⁠dyshay thanks for queuing the 4090 run, looking forward to the frame times.

**@⁠Alilou92** on GitHub · 2026-11-30 10:15 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2543#pullrequestreview-6110288649) · **reviewed** Thanks for the review and for the independent numbers. Reproduced here (2048², detile, Linux VM, 2 vCPU, best of 10, byte-identical outputs): | Case | Series S | Series X | |---|---|---| | BC7 64KB_S_X | ×5.0 | ×4.6 | | RGBA8 64KB_R_X | ×5.3 | ×5.1 | | RGBA8 64KB_S_X | ×5.5 | ×5.3 | | BC1 64KB_D_X | ×4.5 | ×4.5 | On fixed-size copies, this machine sees a steady gain: +12 to +21 % over the plain copy in all 8 cases. It likely depends on the CPU (fast short `rep movsb`/memcpy would close the gap), so I'd keep it since it costs nothing where it doesn't help. I'll add the two tests you suggested and build the XOR tables once per pattern (a static cache, as `shared_pattern` does for the other modes). On #3524: it uses the same factorisation, bundled with four unrelated changes. This PR is only `walk_xor` (one file), opened earlier, with byte-for-byte checks on 20,436 layouts. Happy to go with whichever the maintainer prefers. @⁠dyshay thanks for queuing the 4090 run, looking forward to the frame times.
configure_xor takes the pattern's XorAxes from a static cache (as
shared_pattern does for the other modes) instead of walk_xor building
them at every call; walk_xor still builds them when a layout has none
or was read to another block size. Small levels gain most: RGBA8
64x64 64KB_S_X 3.50 to 5.09 GB/s, 128x128 4.13 to 4.65; 256x256 and
up unchanged.

Tests, as suggested in review: xor_tables_split_the_address_by_axis
checks the per-axis parts against xor_offset for every pattern of both
consoles at 4 KiB and 64 KiB blocks, and that a layout gets its
pattern's tables; xor_copies_match_offset_for_every_mode_and_element_size
detiles every XOR mode, element size and console, 2D and 3D, all mips
and tails, with widths that end inside a run, against offset, and tiles
back (880 subresources).

Still byte for byte as main on the 20,436 random layouts.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01UjaiBc7hr6kH3FowMKVt6Y
Author
Owner

@⁠Alilou92 on GitHub · 2026-11-30 21:59 UTC · original

Thanks for merging! The first commit is in main (5b436841). The second one, ad8eb45, still applies cleanly on main: it builds the XOR tables once per pattern (RGBA8 64×64 64KB_S_X 3.50 → 5.09 GB/s, 128×128 4.13 → 4.65; 256×256 and up unchanged) and adds the two tests suggested in review (every XOR pattern of both consoles against the untouched xor_offset; every mode, element size and console against offset, 880 subresources). Happy to open it as a separate PR if that's easier.

**@⁠Alilou92** on GitHub · 2026-11-30 21:59 UTC · [original](https://github.com/trustno1-coder/VIctory-NVIDIA/pull/2543#issuecomment-7293182847) Thanks for merging! The first commit is in main (5b436841). The second one, ad8eb45, still applies cleanly on main: it builds the XOR tables once per pattern (RGBA8 64×64 `64KB_S_X` 3.50 → 5.09 GB/s, 128×128 4.13 → 4.65; 256×256 and up unchanged) and adds the two tests suggested in review (every XOR pattern of both consoles against the untouched `xor_offset`; every mode, element size and console against `offset`, 880 subresources). Happy to open it as a separate PR if that's easier.
This pull request can be merged automatically.
This branch is out-of-date with the base branch
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin '+refs/pull/2543/head:github-bot/gh-2543'
git switch 'github-bot/gh-2543'

Merge

Merge the changes and update on Forgejo.
git switch 'main'
git merge --no-ff 'github-bot/gh-2543'
git switch 'github-bot/gh-2543'
git rebase 'main'
git switch 'main'
git merge --ff-only 'github-bot/gh-2543'
git switch 'github-bot/gh-2543'
git rebase 'main'
git switch 'main'
git merge --no-ff 'github-bot/gh-2543'
git switch 'main'
git merge --squash 'github-bot/gh-2543'
git switch 'main'
git merge --ff-only 'github-bot/gh-2543'
git switch 'main'
git merge 'github-bot/gh-2543'
git push origin 'main'
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/trustno1-coder--VIctory-NVIDIA!2543
No description provided.