perf(victory-formats): add packed-linear and 64/256-byte chunked detile/tile fast paths #410
No reviewers
Labels
No labels
accessibility
bloqué : binaire console
bug
chargeur
console-dll
cpu
documentation
duplicate
enhancement
good first issue
gpu
help wanted
invalid
performance
question
runtime-gdk
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/LooperSalty--AnyXboxX!410
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-410"
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?
@Lewandox on GitHub · 2026-11-26 17:52 UTC · original
Lewandox:perf/formats-texture-linear-and-wide-runs→main· +104 −3 · 1 files · 1 commits · closed without mergingSummary
Speeds up texture tiling and detiling in
victory_formats::texture::Layout(third_party/victory/crates/victory-formats/src/texture.rs):Swizzle::LINEARhas matching source/destination row pitch (row_pitch == bytes && m.pitch * element_bytes == bytes), copies each 2D slice in a singlecopy_from_sliceinstead of looping row-by-row.64and256bytes) for both non-XOR and XOR swizzles:64-byte and256-byte specializedcopy_runsarms (matching common 16-byte BC3/BC5/BC7/RGBA32F micro-tile run sizes on Series X) alongside the existing8,16, and32-byte paths.copy_runs_xorfast path (8,16,32,64,256) to XOR-swizzled modes (SW_64KB_*_X) whenrow_base,xor, and run offsets are aligned to the chunk size, eliminating per-run slice bounds checks in the inner loop.packed_linear_and_wide_runs_round_tripverifying bit-exacttileanddetileoutput againstLayout::offsetacrossLINEAR,SW_64KB_S,SW_64KB_S_X, andSW_64KB_R_X.Verification
cargo test -p victory-formats --lib texturecargo xtask policyinsidethird_party/victory382b315003to9f468b42709f468b4270to7b8d8171b7@LooperSalty on GitHub · 2026-11-26 23:09 UTC · original
Closing after #454 moved
third_party/victoryto the Vice-Tay base (TaynanGT/Vice-Tay a252348).The file does not apply to the new base any more, and the fast paths came without a measurement (rule 2 of AGENTS.md asks for one for performance work).
Thanks for the work. If you measure a gain on the new base, a new PR against
mainis welcome.🤖 Closed by Claude Code on behalf of the maintainer
Pull request closed