Tiling: use fixed-width copies for short runs of wide elements #1738
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!1738
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1738"
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?
@bradyyie on GitHub · 2026-11-24 20:04 UTC · original
bradyyie:perf/detile-wide-runs→main· +75 −3 · 1 files · 2 commits · openStacked on #1512 (part of #1511). Only
59bc9eeis new. For an 8- or 16-byte element, a short contiguous run can be just one or two elements. At those widths, a fixed-size copy per element beat the variable-size run loop.What is in it
tiling.rs: specialize 8-byte elements for runs of one or two and 16-byte elements for runs of one. Longer runs keep #1512's copy path.Tested
20:A, stock pacing. In profile seconds 65–75, game-host stacks containingdetile_levelaccounted for 19.48% of sampled thread CPU delta on #1512 (fddfa26), 12.30% here. Asset traffic differed between runs. The earlier PIX timing capture identified the streaming interval; the CPU comparison is from samply.cargo test --release --workspace --locked -- --test-threads=4: 752 passed, 0 failed, 41 ignored. Two GPU tests reportedSKIPPED(no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.Regression run
Not tested
AI use
OpenCode, GPT-6.2 Astra: implementation, benchmarks, test runs and PR text.
@futurepro62 on GitHub · 2026-11-24 21:15 UTC · original · edited 2026-11-24 21:57 UTC
Full-suite run, since this PR has no test report yet. Tested exact head
59bc9ee(on its base930e8b4).Tested
cargo build --workspace, thenXCL_REQUIRE_GPU=mesh cargo test --workspace -- --test-threads=4 --skip heap_window_out_of_memory_falls_back_to_the_switch_form --skip pso_measurement_compiles_an_exact_synthetic_record: 752 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.detile_level_runs_match_elements.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 752 passed, 0 failed, 41 ignored, no skips.--skipon NVIDIA. Both fail on main7f7e768too, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns their skips into failures.heap_window_out_of_memory_falls_back_to_the_switch_formskips whenXCL_HEAP_WINDOWSis unset (#1651), andshaders::tests::pso_measurement_compiles_an_exact_synthetic_recordskips because Developer Mode is off on this PC (it cannot disable the driver cache). The AMD run does not setXCL_REQUIRE_GPU, so there both just print SKIPPED.Not tested
AI use
@DavidM1911 on GitHub · 2026-11-24 22:44 UTC · original
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~23 ignored. (Intermittent single-test flake under parallel scheduling; clean on single-threaded rerun — same flake seen on unmodifiedmain.)Thanks!
@JJAutoCompare on GitHub · 2026-11-25 04:04 UTC · original
PR #1738 — Windows / Arc A770 verification
Tested clean detached head
59bc9eebdac509181118ac5bd7f281a832d0ddf9. The diff changes onlycrates/xcl/src/gpu/tiling.rs.STOR-WINLAB | Windows 11 Enterprise Evaluation x64, build 26200 | AMD Ryzen 7 3800X | Intel Arc A770, driver 32.0.101.9175 | DXC 1.9.2609.5 | rustc 1.100.0 (0ef1bc386, x86_64-pc-windows-msvc). Cargo used unoptimized dev and test profiles with debug info and incremental compilation disabled.
Tested
cargo build --workspaceandcargo test --workspace --no-runboth exited 0 outside the Arc lock. Cargo built 18 test executables.XCL_ADAPTER=NONE_CPU_ONLY,cargo test -p xcl --lib gpu::tiling::tests::outside the lock gave 15 passed, 0 failed, 0 ignored, and 0SKIPPEDlines. The detile tests compare output bytes to element-by-element reads across supported swizzles, 1–16-byte elements (including the fixed-width 8- and 16-byte cases), pipe configurations, mip levels and tails. They exercise full and truncated sources, zero-fill for unreadable elements, and base swizzle offsets.Invoke-ArcTest.ps1withXCL_ADAPTER=A770andRUST_TEST_NOCAPTURE=1,cargo test --workspace --no-fail-fast -- --test-threads=4exited 101. The 19 result lines (18 executables and 1 doc-test target) report 736 passed, 16 failed, 41 ignored, and 0 filtered out. All 15 tiling tests also passed in this run.Workspace failures and skips
CreateComputePipelineStateerrors (0x80070057) and 4 output mismatches (fused overflow, mip sampling, f16 high-half preservation, and a wave reduction). The synthetic title failed theRSSetDepthBiasXcheck, drawing blue where green was expected.SKIPPEDlines. Two cite missing wave64, one cites tiled resources tier below 2, and two cite missing D3D12 debug-layer support. These five appear in the harness pass count and supply no coverage.Not tested
Matched
mainbaseline, retail-title smoke run, retail samples (XCL_SAMPLE_*unset), performance, and other GPU vendors.AI use
T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high) ran the build and verification. Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr1738-suite.logand published.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.