diff options
| author | bobcatchris <83428450+bobcatchris@users.noreply.github.com> | 2026-11-29 22:58:03 -0600 |
|---|---|---|
| committer | bobcatchris <83428450+bobcatchris@users.noreply.github.com> | 2026-11-30 05:18:19 -0600 |
| commit | af46ed20c82211672dcec9b2db841d3c247ebd5d (patch) | |
| tree | 58982b6132b9fe7323daaa95439dd2956214f4a3 /runtime/test/queue_proxy_test.cpp | |
| parent | d367675c705c758f731ae9eb603839a4ebb2283c (diff) | |
leonida-formats: pre-divided u32 chunk offsets & bounds-hoisted copy in Layout::walk (D3D12-FORMATS-TEXTURE-FAST-WALK)
Speed up Layout::detile and Layout::tile (hot on texture refreshes and
async texture read-backs) by:
- Pre-dividing uniform chunk offsets into a compact Vec<u32> (4 B vs 24 B
per run, 6x less L1 cache traffic per row).
- Checking `base + max_chunk_off < tiled.len()` once per row so the inner
loop copies without per-chunk bounds checks or per-chunk divisions.
- Specializing 4-byte and 64-byte chunk sizes alongside 8, 16, and 32.
Measured --release A/B on Ryzen 7 7800X3D across 8 64KB_S/64KB_D layouts:
detile +21.6% to +74.3% (1.22x-1.74x), tile +5.8% to +62.7% (1.06x-1.63x),
with zero regressions and 41/41 leonida-formats tests passing.
AI-assisted: Antigravity (Gemini 4 Neon)
Diffstat (limited to 'runtime/test/queue_proxy_test.cpp')
0 files changed, 0 insertions, 0 deletions