Repository navigation
Direct DXIL: image_get_lod accepts static samplers - #1806
Conversation
… the sweep report image_get_lod rejected MIMGs whose S# the console built from constants (79 PS of the GTA VI pack, the only non-geometry gap of a full sweep). The static/heap sampler choice moves into Lw::mimg_sampler, shared by sample/gather and get_lod. The coverage report also keeps the 10 slowest programs (text output), to chase the translation-time tail. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Tested On
RTX 3080 Ti / 621.35, Ryzen 7 9800X3D, Windows 11 build 26300, Rust 1.99.1 MSVC debug, DXC 1.8.2502.11. Not tested This was a focused synthetic pixel-shader test. No whole-suite run, retail smoke, or other GPU vendors in this check. AI-assisted. Codex (GPT-6 family, exact variant unavailable) wrote and ran the local fixture and drafted this report. |
|
One complement to the translation-only regression: #1775 exercised |
…v#1791, xcl-dev#605, xcl-dev#1806, xcl-dev#1745) Merges 60 upstream commits through c4d37be, incorporating: - PR xcl-dev#1747 (raylitebull): eliminate multi-heap UpdateTileMappings and per-texture Signal stalls in vram::Pages via contiguous TilePool - PR xcl-dev#1791 (wondercrash): D3D12.X an ExecuteIndirect reads arguments written before it - PR xcl-dev#605 (0x6461726B): promote R9G9B9E5_SHAREDEXP render/UAV targets to R11G11B10_FLOAT - PR xcl-dev#1806 (bmjask): Direct DXIL image_get_lod accepts static samplers - PR xcl-dev#1745 (gefydev): direct per-lane DXIL recompiler lowering backend Assisted-by: Antigravity
Brings xcl-dev#1747, xcl-dev#1791, xcl-dev#605, xcl-dev#1679, xcl-dev#1806, xcl-dev#1745, xcl-dev#1307, xcl-dev#1321 among others. Resolutions: - dxil/kernel.rs: upstream's Lw::new / Lw::finish; the safe s_barrier state and policy and xcl-dev#1741's single-wave bounded exchange move into Lw::new, with a safe_barrier flag (false for the per-lane lowering). - dxil/lower.rs: VAR_BAR_DEAD moves to VAR_BUDGET + 6 (+5 is VAR_F32_MODE). - TRANSLATOR_VERSION 9. - d3d12x/bind.rs: the bounded ExecuteIndirect call runs inside fresh_indirect_arguments. - d3d12x/list_x.rs: tracked_list_type, and transition (pub(super)) over the batched transitions. - recomp/mod.rs: compact backend and per-lane modules both kept; the oversized-structured-code fallback applies to translate after prepare. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Follow-up to #1426.
image_get_lodwith a static sampler (an S# built from constants in the shader) fell back to HLSL;Lw::mimg_samplerincrates/xcl/src/gpu/dxil/lower_image.rsnow resolves it the same way sampling does, which fixes 79 a retail title pixel shaders. With that, every program in the pack translates directly except geometry shaders (geometry mode is in #1679). The sweep report also lists the 10 slowest programs.What is in it
Lw::mimg_sampler:image_get_lodaccepts static samplers, sharing thes<i>, space1binding with samples of the same S#.Regression test
core_tests::ps_get_lod_with_a_static_sampler(translates, one shared static sampler, validates).Sweep report: the 10 slowest programs.
Full-pack sweep (26,698 programs):
total 26,229 (98.2%) → 26,308 (98.5%)
PS 12,022 → 12,101 / 12,101; CS/MS/VS 100%; GS 0/390 (Direct DXIL: geometry mode, MSAA loads and directed f32 rounding #1679)
0 validator failures, panics, or timeouts
translation p50/p95/max: 84 ms / 1.29 s / 20.4 s → 50 ms / 0.86 s / 17.9 s (depends on machine load)
size on a 1,500-program sample: direct 218.3 MB vs HLSL+DXC 174.1 MB (1.25×)
Tested
RTX 4090, i9-12900K, Windows 11, rustc 1.100.0, debug + release
cargo test --workspace -- --test-threads=4: 892 passed, 0 failed, 42 ignored (SKIPPED GPU tests:gpu_geometry_wave32_prefix_count_over_a_maskandgpu_wave32_program_in_wave64_hardware(no wave64),heap_window_out_of_memory_falls_back_to_the_switch_form(no heap windows))gpu::dxil: 83 passed, 0 failed;gpu::recompwithXCL_DIRECT_DXIL=1: 197 passed, 0 failed; withXCL_DIRECT_DXIL=all: 197 passed, 0 failedRegression run
main:
PR:
Not tested
Geometry shaders (they need Direct DXIL: geometry mode, MSAA loads and directed f32 rounding #1679).
Other GPU vendors.
AI use
🤖 Generated with Claude Code