Tiling: detile_level copies contiguous runs (16 B in swizzled modes) in one go #1502
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/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?
Imported from ivall/xcl. Originally posted by oishigeso on 2026-11-24T17:10:02Z.
Part 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
Imported from ivall/xcl. Originally posted by gut0to on 2026-11-24T18:51:47Z.
Review: COMMENTED
The focused detile tests are useful. CONTRIBUTING.md also requires the full workspace suite to run on a GPU, with pass/fail/ignored counts and skipped-test names. This description reports only the focused
cargo test -p xcl --lib detilerun. Please add the full-suite result before merge. AI-assisted review; I checked the Tested section against the guide.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T18:53:48Z.
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!
upstream-sync referenced this pull request2026-11-24 23:06:49 +00:00
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T00:59:42Z.
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.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T05:57:50Z.
Triage (#1607) – head
fddfa26Main commit
95f12a04(D3D12.X: process 2D texture tiling in contiguous block runs) replaced the per-element loop in Chain::detile_level that this PR edits: 2D levels now go through Layout::detile_2d, which copies the largest contiguous run of x neighbours (Layout::run_elems, shortened by base_xor) and keeps element-wise bounds checks for a truncated source. main also has the equivalent test (detile_level_matches_element_by_element with a base swizzle and a short source).#1738 and #1513 are stacked on this PR and would need rebasing onto main's detile_2d.
Recommendation: close (superseded by main commit
95f12a04).AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by throny on 2026-12-01T12:46:29Z.
Closing as superseded: this change is already on
main(95f12a04). main tiling.rs detile_2d copies contiguous runs via effective_run (95f12a04) and has detile_level_matches_element_by_element test; same optimisation and test as the PRTwo independent checks found this: Foniass's close list on #1607 and ours against current
main. If something here is still missing onmain, say so and reopen it, or ask and I will.AI use: Claude Code (Claude Opus 5.5); the per-PR comparison was done by Claude Sonnet 5.5 sub-agents.
Pull request closed