Repository navigation
Conversation
|
Independent Windows GPU check of #3550 head I ran the same synthetic 60×20 BC1, six-mip test in isolated source trees. It uploads distinct tight bytes to each mip, checks every native GPU readback row, and compares the published tiled allocation against an independently CPU-tiled expected buffer. The unmodified parent fails while planning mip 1 ( Windows 11 build 26300; RTX 3080 Ti, NVIDIA driver 621.40; Rust 1.99.1 MSVC. With AI use: Codex (GPT-6.2 Sol) wrote and ran the synthetic GPU test and drafted this report. |
|
merge-check AI-written and posted by Foniass without a human check of each point. |
|
Thanks for the check. Both points looked at, head unchanged (3b4a7a4). Wider than the title: correct, and the description now says so. The base alignment in Cost: I counted download plans with a local counter in
Not covered: the world after 120 s was not counted, and there is no test of an uncompressed multi-mip download. Both are under Not tested now. AI use: Claude Code, Claude Fable 5.2 added the local counter, ran the four runs and wrote this reply. |
D3D12 returns a 4x4 footprint for the 2x2 and 1x1 BC3 mips. Its single-footprint query also preserved the unaligned 0x555780 base on an RTX 5070 Ti. The planner rejected both results, and reverse layout also expected logical mip dimensions. Align each query base and use whole-block extents for the copy and reverse layout. The GPU regression publishes all 12 mips byte for byte on the RTX 5070 Ti. The title_textures suite reports 67 passed, 0 failed, 1 ignored and no SKIPPED lines. The base alignment applies to every format: an RGBA8 chain's small mips were refused the same way, and a second GPU test publishes all 8 mips of a 128x128 one. Assisted-by: Codex (GPT-6.2-Sol) Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
3b4a7a4 to
443ad63
Compare
|
Follow-up, head 443ad63: the uncompressed case now has a test.
Suite on 443ad63: 2892 passed, 0 failed, 51 ignored, 28 SKIPPED lines. The smoke blocks in the description are rerun on this head. AI use: Claude Code, Claude Fable 5.2 wrote the test and this comment and ran the tests. |
|
No open or merged PR makes the same change. #3514 (same author) touches texture-download command objects, not the footprint layout. AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human. |
|
merge-check claim |
|
merge-check claim |
|
merge-check AI-written and posted by Foniass without a human check of each point. |
|
merge-check claim withdrawn AI use: an agent posted this withdrawal. |
A GPU-written title texture is copied back into the title's memory through a download plan. For a block-compressed texture the plan was refused for the smallest mips: D3D12 returns a 4×4 footprint for the 2×2 and 1×1 mips of a BC3 texture, and the single-footprint query kept an unaligned base offset (
0x555780after mip 6 of a 2048×2048 chain on an RTX 5070 Ti) where the check expected the next 512-byte boundary. Both ended indriver footprint differs from the exact subresource, and reverse layout compared against the logical mip size as well. This change aligns each query base and uses whole-block extents for the copy and the reverse layout. Part of #505.The base alignment is not specific to block compression: it applies to every format, so an uncompressed multi-mip chain whose previous mip ends off a 512-byte boundary, which
mainalso refuses, is downloaded as well. A refused plan is not dropped onmain: it is prepared again at every submit and refused again.What is in it
crates/xcl/src/hle/d3d12x/title_textures.rs: the download layout rounds each query base up to the placement alignment and validates, copies and reverse-tiles with dimensions rounded to whole format blocks.gpu_download_publishes_every_bc3_mip(GPU): uploads a pattern to all 12 mips of a 2048×2048 BC3 texture, downloads it through the plan and compares the tiled buffer byte for byte.gpu_download_publishes_every_rgba8_mip(GPU): the same for all 8 mips of a 128×128 RGBA8 texture, whose small mips end off a 512-byte boundary too. It fails with the base alignment taken out (driver footprint differs from the exact subresource).download_layout_accepts_full_bc_blocks_for_small_mips(no GPU): the 4×4 footprints, byte counts and offsets of the two smallest mips, and an unrounded footprint is still refused.README.md: the Textures row names block-compressed mip tails.Tested
cargo build --workspace, thencargo test --workspace --no-fail-fast -- --test-threads=4on 443ad63 (on main ff0c364): 2892 passed, 0 failed, 51 ignored.SKIPPEDon this adapter: 28: 22no wave64; 2no heap windows; 2no d3d12SDKLayers.dll; 1no D3D12 debug layer; 1 cannot disable the driver cache (no Developer Mode).prepare_downloads(not in this PR),main493dbd3 against 493dbd3 merged with this PR, two 120 s runs each after a warm-up: onmainno plan was accepted and at least 512 and 256 were refused (all block-compressed, formats 77 and 78, the same textures prepared again at every submit, from about 100 s); with this PR one plan was accepted (a 12-mip format 78 texture) and none refused. No plan for another format was prepared in any of the four runs. Frames shown:main3093 and 3047, with this PR 3142 and 3061; no device removal or crash.driver footprint differs from the exact subresource(on the earlier base 9dfbe3e) and pass with it; the GPU test ran on the RTX 5070 Ti, not skipped.Regression run
Each run follows one warm-up run of the same build; the A button is pressed once at 70 s.
Not tested
AI use
🤖 Generated with Claude Code