Tiling: detile_level copies contiguous runs (16 B in swizzled modes) in one go #1512
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!1512
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1512"
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?
@oishigeso on GitHub · 2026-11-24 17:10 UTC · original
oishigeso:detile-1-runs→main· +59 −3 · 1 files · 1 commits · draftPart 1 of 2 for #1511.
detile_levelcopied a texture one element at a time. Within a swizzled mode's 16-byte micro-tile run, and along a row in the linear and thin modes, consecutive elements are consecutive in both layouts, so it now copies those runs in one go.What is in it
crates/xcl/src/gpu/tiling.rs:detile_levelcopies runs; the same offsets as before (Layout::offset_z)Tested
cargo test -p xcl --lib detile -- --test-threads=1: 7 passed, 0 failed on the stack with part 2. Six of them are at this PR's head (detile_level_runs_match_elements, new, anddetile_level_matches_element_by_element,linear_levels_detile_by_rows_as_by_elements,tile_then_detile_round_trips_with_partial_blocks,a_batch_detiled_on_several_threads_matches_one_thread,retail_ttpf_textures_detile_with_their_mip_chains);gpu_detile_matches_the_cpucomes with #1513. Run before the rebase onto930e8b4, which had no conflictsRegression run
main:
PR (this PR's head commit; the title is run through a folder named RetailTitle):
Not tested
AI use
🤖 Generated with Claude Code
@DavidM1911 on GitHub · 2026-11-24 18:53 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~21 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@JJAutoCompare on GitHub · 2026-11-25 00:59 UTC · original
Tested
I ran the CPU tiling unit suite on clean PR head
fddfa2675a3ffc722a7a0dcf2ed8da1938b97713and verified that SHA against the open PR after the run.SKIPPEDlines.detile_level_runs_match_elements,detile_level_matches_element_by_element, andlinear_levels_detile_by_rows_as_by_elementspassed. They compare against element-by-element output for contiguous swizzled copies, mip tails, truncated inputs, and padded linear rows.x86_64-pc-windows-msvc), Cargo 1.100.0, default unoptimized test profile. DXC 1.9.2609.5 configured throughXCL_DXC_DIR=%LOCALAPPDATA%/XclTooling/dxc-1.9.2609/bin/x64.CARGO_BUILD_JOBS=2,CARGO_INCREMENTAL=0, andXCL_ADAPTER=A770were set. Cargo target and TEMP/TMP were isolated onL:/XclTooling.Not tested
GPU execution, the full workspace suite, retail-title smoke runs, and performance.
AI use
Codex (
gpt-6.2-sol) ran the tests, verified the SHA, and wrote this report.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.