perf(formats): add AVX2/SSE2 micro-tile texture detiler and DetilePool #41
No reviewers
Labels
No labels
AMD
audio
bug
confirmed
crash
cutscene
dlss
documentation
duplicate
enhancement
fixed-on-main
frame-generation
good first issue
help wanted
input
INTEL
invalid
lighting
linux-proton
memory
needs-info
needs-logs
needs-rebase
NVIDIA
performance
pr-diagnostics
pr-docs
pr-feature
pr-fix
pr-performance
pr-refactor
pr-tests
question
RAYTRACING
rendering
report
series-s
shaders
spam
startup
upstream
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/trustno1-coder--VIctory-NVIDIA!41
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-41"
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?
@Vladimir-Human on GitHub · 2026-11-27 12:50 UTC · original
Vladimir-Human:perf/simd-detile-avx2-pool→main· +2936 −10 · 3 files · 1 commits · closed without mergingSummary
Ports the 256-byte micro-tile AVX2/SSE2 texture detiler/tiler and persistent
DetilePoolintovictory-formats, routingLayout::detileandLayout::tilethrough the vectorized thin micro-tile fast paths with portable scalar fallback for unaligned/edge remainders and thick 3D layouts.crates/victory-formats/src/detile.rs— 256B micro-tile AVX2/SSE2/portable kernels across 1/2/4/8/16-byte elements (R8, RG8/R16, RGBA8/R32, BC1–BC7) for Standard (_S) and Display (_D) swizzle families, guarded fast-path geometry validation (prepare_thin_geometry), and persistent workerDetilePoolfor large subresources.crates/victory-formats/src/lib.rs,crates/victory-formats/src/texture.rs— delegatesLayout::detile/Layout::tiletodetile, keepswalk/copy_run/copy_runsunder#[cfg(test)]for parity verification, adds exhaustive scalar-reference parity, edge/tail/3D/array, concurrent pool, and panic-recovery tests, and parenthesizes(i * 7) >> 3in an existing test to satisfy Rust 1.98.1clippy::precedence.Verification
cargo clippy -p victory-formats -p xtask --all-targets --locked -- -D warnings(default &--all-features): 0 warningscargo test -p xtask --locked: 6 passed; 0 failed (repository_passes_policygreen)cargo test -p victory-formats --locked -- --test-threads=1(default &--all-features): 47 passed; 0 failed; 6 ignored@trustno1-coder on GitHub · 2026-11-28 19:01 UTC · original
Thanks for this. I'm closing it without merging: it conflicts with #36 (GPU texture detiling), merged now, in crates/victory-formats/src/texture.rs, and the two overlap in what they do. If you'd still like the AVX2/SSE2 detiler in, please rebase it on the current main and open a new pull request, ideally with a measurement against #36's path.
Pull request closed