Textures: detile and tile levels a block at a time, in runs of x neighbours #895
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/901"
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 mastrr9 on 2026-11-24T08:00:05Z.
Speeds up CPU-side console texture detiling and tiling (
detile_level,tile_level,detile_volume,tile_volumeincrates/xcl/src/gpu/tiling.rs):memcpyand row-wide walks with a single block-by-block walk that splits x/y/z offsets, uses fixed-size element copies, and copies aligned runs of up to 16 B of x-neighbours at once (falling back element-by-element where swizzle bits overlap).#[ignore]benchmark harness (crates/xcl/tests/tiling_perf.rs).Tested
617.42/32.0.16.1742), Windows 11 Pro 25H2 (26200.9974),rustc 1.100.0 (0ef1bc386 2026-11-09)MSVC debug, DXC Windows SDK10.0.26100.0,d3d12SDKLayers.dllinstalled8b521d5d5a9a88cf299e26d0c81520a948eef4f3(HEAD2e88e656a3e1f9096d9c06e2d8314657510c716ehas an identical tree; only commit author metadata was updated after GitHub account rename)cargo build --workspace: clean (no new warnings; only pre-existingfetch_updatedeprecation warning)cargo test --workspace -- --test-threads=4: 718 passed, 0 failed, 42 ignored (extra ignored item is the manual benchmark intests/tiling_perf.rs)SKIPPEDGPU tests:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask: no wave64,gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware: no wave64Regression run
Smoke run by @Toons29 in comment below: https://github.com/xcl-dev/xcl/pull/901#issuecomment-7151613298
Contributed by a community tester; the PR author did not run it. Both blocks are pasted as posted.
main:
PR:
Tester's setup and limits: AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.Tester's AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; the tester checked the blocks before posting.Not tested
AI use
Imported from ivall/xcl. Originally posted by SlopTart on 2026-11-24T09:34:27Z.
Linux / AMD RDNA3 datapoint.
Merged state: head
2e88e65onto main09940bb, clean merge.Full suite,
cargo test --workspace --release --no-fail-fast --target x86_64-pc-windows-gnu -- --test-threads=4: 712 passed, 7 failed, 41 ignored; failures are the known Wine-lane set from my #42 rows. detile/tile run tests green.Not tested: retail titles (none here), Windows, RDNA4.
Counts only, no game data.
Machine: RX 7900 XT (RADV NAVI31), Mesa 26.2.5, kernel 7.2 (Arch), Proton Experimental (wine-11.0), patched vkd3d-proton v3.1, Rust cross
x86_64-pc-windows-gnu,XCL_NETWORK=0, release profile,--test-threads=4. My Linux rows: #42 / #718.AI use: Hermes agent (local Qwen-class) ran the suite and drafted this; I checked it before posting.
upstream-sync referenced this pull request2026-11-24 21:29:08 +00:00
Imported from ivall/xcl. Originally posted by Toons29 on 2026-11-25T03:07:31Z.
Regression run of
2e88e656on the retail title, for this PR's Regression run section. Both blocks are fromscripts/smoke.ps1as printed, not edited:mainon4178e888, this PR on its head commit with no uncommitted changes, same title and time.Against the limits in CONTRIBUTING.md: 100 % of
main's frames, 100 % of its peak commit, no crash, no device removal.AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0,
cargo build --release -p xcl, 60 s,XCL_NETWORK=0. This is a regression check only: it does not show whether the run reaches the code this PR changes.AI use: Claude Code (Claude Opus 5.5) built both trees and ran
scripts/smoke.ps1; I checked the blocks before posting.Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T05:50:38Z.
Empirical test report (
2e88e656)Hardware / environment
2e88e656a3e1f9096d9c06e2d8314657510c716ein a clean detached worktree on Windows x64, build 26200. AMD64 Family 23 Model 113 Stepping 0 with 12 logical processors.rustc 1.100.0 (0ef1bc386 2026-11-09)and DXC1.9.2609.5 (01b62ad47). Both focused runs usedXCL_ADAPTER=NONE_CPU_ONLYandRUST_TEST_NOCAPTURE=1. They ran outsideInvoke-ArcTest.ps1with zero Arc GPU mutex hold.Commands and results
cargo test --workspace --no-runexited 0 and compiled the workspace test executables.cargo test -p xcl --lib gpu::tiling::tests:: -- --nocaptureexited 0 with 17 passed, 0 failed, 0 ignored, 0 skipped, and 681 filtered out. The harness finished in 27.78 s.cargo test --release -p xcl --test tiling_perf -- --ignored --nocaptureexited 0 with 1 opt-in benchmark passed, 0 failed, 0 ignored, and 0 skipped.Observed behavior
Not tested
The full GPU workspace suite, game smoke runs, and a performance comparison against
mainwere omitted.AI use
Verified with T3 Code / Codex (gpt-6.2-sol, reasoningEffort: high). Coordinator #2 (T3 Code / Antigravity, gemini-4-neon) verified counts against
pr901-focused.logand published.Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-25T09:41:52Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~26 ignored. (Intermittent single-test flake / 0xc0000005 abort under parallel scheduling — tracked in #1978; clean on single-threaded rerun.)Thanks!
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-11-28T20:19:25Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T04:27:24Z.
Triage (#1607) – head
2e88e65Main commit
95f12a04("D3D12.X: process 2D texture tiling in contiguous block runs") already walks 2D levels a block at a time and copies runs of x neighbours indetile_level/tile_level, so the 2D part of this PR overlaps with it and will conflict.detile_volume/tile_volumeon main are still element by element, so the 3D walk is new. Open PRs #1512 and #1738 also copy contiguous runs, indetile_levelonly.A rebase could keep main's 2D code and narrow this PR to the volume path and its equivalence tests.
Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
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.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.