D3D12.X: process 2D texture tiling in contiguous block runs #2820
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
goal:world-load
good first issue
help wanted
invalid
keep-open
off-goal
question
stale
test-only
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/xcl-dev--xcl!2820
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2820"
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?
@KOLESNiii on GitHub · 2026-11-26 14:29 UTC · original
KOLESNiii:d3d12x-tiling-block-runs→main· +321 −62 · 1 files · 1 commits · openPart of #1833. This is T1 from the extraction plan in #2787. It takes
b81ac2ebfrom #2778 (bmjask), unchanged. That commit adapts raylitebull's032c661ablock-slab algorithm.CPU texture tiling and detiling in
gpu/tiling.rswent through swizzled 2D textures one element at a time and worked out each element's block position again. For each GFX10 layout, this caches the longest horizontal run that is provably contiguous, works on one 4 KiB / 64 KiB block at a time, and copies whole runs in one go. It keeps the element-by-element bounds checks for a truncated source. Low base-swizzle bits make the runs shorter. Thick 3D single-slice helpers keep their existing path. The persistent detile workers (6dd9d53f) are not included.What is in it
D3D12.X: process 2D texture tiling in contiguous block runs(crates/xcl/src/gpu/tiling.rs), cherry-picked with-xfromb81ac2eb. Its two new tests compare tiled and detiled output with the element-by-element path, including base XOR.Tested
cargo test --workspace -- --test-threads=4on065f31bb: 1437 passed, 0 failed, 47 ignoredSKIPPEDon this adapter: 24 recompiler GPU tests withno wave64(or the wave32 per-lane form refused), andheap_window_out_of_memory_falls_back_to_the_switch_formwithno heap windowsmainb49be183(RTX 4060 Laptop, i5-14500HX, release) in #2787. Output checksums were identical in all 8 cases. 1920×1080 R8 mode 5 detile went from 18.75 to 0.59 ms. 2048×2048 RGBA8 mode 10 detile went from 40.14 to 5.48 ms. 2048×2048 BC7 detile went from 2.84 to 1.11 ms. I did not repeat that benchmark.Regression run
main:This PR:
Not tested
AI use
🤖 Generated with Claude Code
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.