GPU: detile wide texture elements in one shader thread #2321
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!2321
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2321"
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?
@yumaste on GitHub · 2026-11-29 11:52 UTC · original
yumaste:nvidia/perf-gpu-detile-wide→main· +38 −25 · 1 files · 1 commits · merged 2026-11-30 14:12 UTCWhat it changes
The D3D12 detiler assigned one shader thread per 32-bit word. A BC1 block repeated the same tiled-address calculation twice and a BC7 block repeated it four times. Give each thread one 8- or 16-byte element and transfer it with
Load2/Store2orLoad4/Store4. The dispatch width now counts elements for these formats. R8 and R16 still pack the elements of one output word, using their fixed group sizes of four and two.The change applies to the existing opt-in path
VICTORY_GPU_DETILE=1. Masked mips still write zeros, including all words of a wide element.GPU timing
Intel Graphics, Windows, driver 32.0.101.8826. Baseline and candidate PSOs used the same synthetic texture bytes and buffers. GPU timestamps bracketed the detile dispatches and their resource transitions, excluding setup and readback. Each of three runs used five warm-up pairs and 41 timed pairs with alternating order.
NVIDIA timing and in-game frame times remain unmeasured.
How it was tested
cargo test --locked -p victory-gpu --lib gpudetile::tests -- --test-threads=1on Windows. The WARP test matched the CPU detiler byte for byte across its cases, including a partial BC1 thread group, masked BC1 and BC7 mips and 3D 8-byte elements.Checked for overlap