Repository navigation
Conversation
…in one go RGBA8 2048x2048 on the console pipe config: 22 ms -> 10 ms; BC 8/16 B ~10%. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The tiled bytes and the layout's tables (only the entries the texture reaches) go to the upload buffer as they are; a compute shader (detile_gpu, DXC cs_6_0, root constants + root SRV/UAV) writes each subresource's rows into the uploader's scratch UAV buffer at its GetCopyableFootprints place, and the copies into the texture read from there. Same formula as Layout::offset_z, out-of-range reads as 0. CPU path kept: XCL_GPU_DETILE=0, no DXC or pipeline, a texture the plan cannot take, and frame tracing. Test: gpu_detile_matches_the_cpu - 78 textures (every 2D mode x element size, mips, 2 slices, tiled bytes cut short, 3D) read back identical to the CPU detile. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
gut0to
left a comment
There was a problem hiding this comment.
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 detile tests. Please add the full-suite result before merge. AI-assisted review; I checked the Tested section against the guide.
|
Verification on RTX 3060 Ti (Windows 11), branch merged with current
Thanks! |
|
I’m profiling host-side texture upload memory on a 16 GiB Windows system with an RTX 4060 Laptop GPU. On main @oishigeso @Cattn I’m considering a separate change in the synchronous Does this overlap work you have underway, or is there a compatibility constraint in #1513 or #455 that I should account for? I’m validating an isolated experiment with readback and matched retail runs first. AI use: Codex (GPT-6) instrumented and analyzed the local run. |
|
Independent dual-adapter validation — PR head NVIDIA RTX 3050 Laptop GPU
Intel Iris Xe
Test-selection note Limitations
This adds independent RTX 3050 full-suite evidence and Intel Iris Xe GPU-detiling validation beyond the existing AMD and RTX 3060 Ti reports. |
Part 2 of 2 for #1511, stacked on #1512 (only the top commit belongs here). The tiled bytes and the layout's tables (only the entries the texture reaches) go to the upload buffer as they are. A compute shader (
detile_gpu, DXCcs_6_0, root constants + root SRV / UAV) writes each subresource's rows into the uploader's scratch UAV buffer at itsGetCopyableFootprintsplace, and the copies into the texture read from there. Same formula asLayout::offset_z; reads out of range give 0.The CPU path stays for
XCL_GPU_DETILE=0, without DXC or the pipeline, for a texture the plan cannot take, and while tracing frames (that looks at the detiled bytes).What is in it
crates/xcl/src/gpu/detile_gpu.rs(new): the plan, the shader and its pipelinecrates/xcl/src/gpu/texture.rs:upload_batch_withdispatches it before the copiescrates/xcl/src/hle/d3d12x/title_textures.rs:plan_gpuper texture, the rest on the CPU as beforecrates/xcl/src/gpu/tiling.rs:Layout::tables, the offset tables for the shader;crates/xcl/src/gpu/mod.rs: the modulegpu_detile_matches_the_cpu: 78 textures (every 2D mode × element size, mips, 2 slices, tiled bytes cut short, 3D) read back byte-identical against the CPU detile494 changed lines, over the ~400 target: about half is the new module and its test, and the shader, its plan and the upload change don't work apart.
Tested
cargo test -p xcl --lib detile -- --test-threads=1: 7 passed, 0 failed (detile_level_runs_match_elements,detile_level_matches_element_by_element,linear_levels_detile_by_rows_as_by_elements,tile_then_detile_round_trips_with_partial_blocks,gpu_detile_matches_the_cpu,a_batch_detiled_on_several_threads_matches_one_thread,retail_ttpf_textures_detile_with_their_mip_chains). Run before the rebase onto 930e8b4, which had no conflictsXCL_GPU_DETILE=0showed no difference in memoryRegression 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