Textures: require thick 3D mip-tail levels to fit within block depth #1604
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/1614"
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 OtavioTadeu on 2026-11-24T18:15:12Z.
What is in it
XCL-BT-014(Part of #1488): track padded depth intiling::Chain::new_3dand include per-axis thick block depth bounds (td, halvingbh/bw/bdbyblk % 3) when selectingfirst_tailfor thick 3D layouts.thick_3d_mip_tail_respects_block_depthunit test covering 4 KiB and 64 KiB thick 3D mip chains and volume tile/detile round-trips.Tested
cargo test -p xcl --lib gpu::tiling: 15 passed, 0 failedcargo test --workspace -- --test-threads=4: 777 passed, 0 failed, 41 ignored (SKIPPED GPU tests:gpu::recomp::tests::gpu_geometry_wave32_prefix_count_over_a_mask[no wave64],gpu::recomp::tests::gpu_wave32_program_in_wave64_hardware[no wave64],heap_window_out_of_memory_falls_back_to_the_switch_form[no heap windows])Regression run
scripts/smoke.ps1 -Game retail_title -Seconds 60(mainbaseline vs PR head on NVIDIA GeForce GTX 1660 SUPER):Not tested
AI use
Imported from ivall/xcl. Originally posted by Anon64 on 2026-11-24T18:23:33Z.
Regression run for this PR: head
f2ba8f4, based onmain9e3831e. RTX 3060 12 GB (581.80, wave32), Windows 11 26200, release,XCL_NETWORK=0, A pressed every 4 s from 20 s,scripts/smoke.ps1on a retail title for 60 s, back to back with themainrun.main
9e3831e:this PR:
No device removals or crashes; 95 % of main's frames, 95 % of its peak commit.
Peak commit on this machine is mostly the pipeline preload's DXC compiles (#1035) and varies a lot from run to run, so it says little about this PR.
Not tested: the whole suite; whether the title reaches the changed code in these 60 s.
Written with Claude Code (Claude Opus 5.5) from runs on this machine.
Imported from ivall/xcl. Originally posted by futurepro62 on 2026-11-24T19:00:28Z.
Full-suite run, since this PR has no test report yet. Tested exact head
f2ba8f4(on its base9e3831e).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: 776 passed, 0 failed, 41 ignored. SKIPPED (no wave64):gpu_geometry_wave32_prefix_count_over_a_mask,gpu_wave32_program_in_wave64_hardware.thick_3d_mip_tail_respects_block_depth.XCL_ADAPTER=radeon),cargo test --workspace -- --test-threads=4: 777 passed, 0 failed, 41 ignored. SKIPPED:heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows).heap_window_out_of_memory_falls_back_to_the_switch_formwas skipped with--skip. It fails on main9e3831etoo, not because of this PR: underXCL_REQUIRE_GPU=mesh,runner::skip_testturns every skip except "no wave64" into a failure, including this test's opt-in "no heap windows" skip (XCL_HEAP_WINDOWSunset). Reported as #1651.Not tested
AI use
Imported from ivall/xcl. Originally posted by DavidM1911 on 2026-11-24T20:30:24Z.
Verification on RTX 3060 Ti (Windows 11), branch merged with current
main:cargo test -p xcl --lib: all passed, 0 failed, ~22 ignored.Thanks!
Imported from ivall/xcl. Originally posted by throny on 2026-11-25T00:15:31Z.
Two contributors checked independently and found that #1624 solves the same problem (for #1488) in a different way: #1607, group D50. You may want to compare them with the other author and agree on one, or say in the PR why both are needed.
This is a hint from the community triage in #1607, not a maintainer decision.
AI use: Claude Code (Claude Opus 5.5), posted by a script from the #1607 table.
upstream-sync referenced this pull request2026-11-25 04:08:41 +00:00
Imported from ivall/xcl. Originally posted by JJAutoCompare on 2026-11-25T05:02:14Z.
Focused Windows verification of XCL PR #1614
Tested head
f2ba8f443a022677f74632a4170e28c4079e8f2eon a clean, detached checkout. The PR changes onlycrates/xcl/src/gpu/tiling.rs.Tested
cargo build --workspacesucceeded.cargo test --workspace --no-runcompiled all workspace test targets.cargo test -p xcl --lib gpu::tiling::tests:: -- --nocapture— 15 passed, 0 failed, 0 ignored, 0SKIPPEDlines.cargo test -p xcl --lib gpu::texture::tests:: -- --nocapture --skip gpu::texture::tests::gpu_ --skip gpu::texture::tests::one_dimensional_arrays_ignore_tsharp_height_for_linear_and_tiled_layouts --skip gpu::texture::tests::non_array_2d_ignores_tsharp_depth_for_linear_and_tiled_uploads --skip gpu::texture::tests::retail_ttpf_textures_detile_with_their_mip_chains— 7 passed, 0 failed, 0 ignored, 0SKIPPEDlines.XCL_ADAPTER=NONE_CPU_ONLYand ran outside the Arc mutex, as did workspace compilation. Parsed totals frompr1614-focused.logwere 22 passed, 0 failed, 0 ignored, and 0 lines beginning withSKIPPED.The new regression test used thick 3D chains with 64 KiB and 4 KiB tiles. In both cases, mips 0 and 1 exceeded the block depth and stayed outside the tail, while mips 2 and 3 entered it. After tiling all four mips into the same allocation, detiling each mip recovered its original bytes. Existing CPU tests also covered non-overlap for other volume layouts and mipped array subresources.
Not tested
Execution was limited to focused CPU texture and tiling tests, alongside full workspace compilation. The full workspace GPU suite, GPU texture uploads, retail texture data, and title smoke runs were omitted.
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
pr1614-focused.logand published.Imported from ivall/xcl. Originally posted by CalvyPZ on 2026-11-25T22:41:45Z.
This PR has been marked as a duplicate and closed after multiple agreeing checks in #1607. If you believe this is incorrect please re-open with why.
Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T06:16:31Z.
Triage (#1607) – head
f2ba8f4#1624 makes the same thick-3D mip-tail fix in
Chain::new_3d(tiling.rs): it limits the tail by depth, to block_d, or block_d/2 when log2(block) % 3 == 2. This PR was opened first and holds only that fix. #1624 adds unrelated hardening on top: base_xor masking, a linear-mode base_xor of 0, and bounds-safe copies. Neither is on main, which still checks only w/h. This PR conflicts with main and needs a rebase.No problems found in the diff.
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.