Repository navigation
recomp/dxil: straddling 16-bit LDS, r0 f16 attrs, loop limit, and safe MS barriers - #1976
raylitebull wants to merge 4 commits into
Conversation
|
Full-suite run, since this PR has no test report yet. Tested exact head Tested
Not tested
AI use
|
fed1358 to
561a6a9
Compare
|
Stacking note: #1976 is currently stacked on top of #1975 (which carries the f16 signature packing, CFG We will rebase #1976 cleanly onto #1975's latest head (and trim down to only the 4 mesh/LDS/safe-barrier additions once #1975 lands) so reviewers see zero duplicated diff. |
561a6a9 to
ec13a10
Compare
|
Rebased
|
|
Verification on RTX 3060 Ti (Windows 11): merge conflict with current |
|
Tested Independent STOR-WINLAB CPU verification of open PR #1976 at Windows 11 Enterprise Evaluation 25H2 x64 (26200.9974), Ryzen 7 3800X, Rust and Cargo 1.100.0 (x86_64-pc-windows-msvc), unoptimized test profile with debug info and incremental compilation disabled. Intel Arc A770 driver 32.0.101.9175 was installed. The shader fixture loaded DXC/DXIL 1.9.2609.5. Both selected fixtures ran on the CPU. cargo test --locked -p xcl --lib gpu::dxil::lower_valu::fidelity_tests::direct_dxil_mixed_fp16_interp_preserves_half_across_ssa_phi -- --exact --nocapture --test-threads=1
cargo test --locked -p xcl --lib gpu::recomp::attribute_tests::fssm_16bit_packed_tables_and_slot_mapping -- --exact --nocapture --test-threads=1Each exited 0 with 1 passed, 0 failed, 0 ignored, 0 skipped, and 1,082 filtered out (0.04 s and 0.01 s respectively).
Not tested GPU execution or pipeline creation, retail smoke, LDS, loop limits, relative moves, mesh barriers, and the workspace suite. AI use T3 Code / Codex (gpt-6.2-sol) inspected and ran the two checked-in fixtures and prepared this report from the logs. |
|
Regression run of Against the limits in CONTRIBUTING.md: 100 % of AMD Radeon RX 9070 (RDNA4, driver 32.0.32029.2010), Ryzen 7 7800X3D, 32 GB, Windows 11 build 26300, Rust 1.100.0, AI use: Claude Code (Claude Opus 5.5) built both trees and ran |
ec13a10 to
e5ddc4b
Compare
|
Rebased Pushed |
e5ddc4b to
adfcc9c
Compare
|
Rebased Verified locally ( |
…ing, and bounded movrel ranges
…n-uniform MS barriers
…LIMIT, and safe MS barriers
adfcc9c to
1447cf9
Compare
|
Rebased
|
Stacked on #1975 (extends
#1975'sf0560cb6+3d365645+865350ccon1c17aa55with commit1447cf9f).Adds three robustness and correctness improvements across the HLSL recompiler and Direct DXIL translator (32 KB
passthrough_splitadjustments have been trimmed from this PR and deferred cleanly to #304):lower_mem.rs,emit.rs): splits 16-bit LDS loads/stores (ds_read_{u,i}16,ds_write_b16,ds_*_d16_*) at byte offsetat % 4 == 3across(at >> 2)byte 3 and(at + 4) >> 2byte 0 in both Direct DXIL (lds_read_bits,lds_bits_store) and HLSL (InterlockedAnd/InterlockedOr), while preserving#134PRELUDE_PIXEL.kernel.rs,lower.rs): replaces Direct DXIL's non-uniform multi-wave mesh barrier fallback error with a bounded groupshared arrival barrier (xcl_barviasafe_barrier_init/safe_barrier_wait/safe_barrier_exit, reusing top 2 dwords ofxcl_ldswhen present so TGSM stays<= 32768bytes, gated byXCL_SAFE_BARRIER != 0, withVAR_BAR_ALIVE = VAR_BUDGET + 6disjoint from#2156'sVAR_IMG_WRITE = VAR_BUDGET + 8and both zero-initialized inInit::load).f16PS attribute fix &XCL_SHADER_LOOP_LIMIT(recomp/mod.rs,lower.rs,pso.rs): preserveshi_register = Some(0)whenr[7] & 0x10 != 0and resolves.zwsubcomponents on same-register packedf16attributes (ps_attribute_slot_and_comp), plus configurableXCL_SHADER_LOOP_LIMIT(default65536, capped1 << 24, folded intopso.rstranslation identity).Part of #1269.
What is in it
1447cf9fon top of#1975(865350cc):crates/xcl/src/gpu/dxil/kernel.rs,lower.rs,lower_mem.rs,lower_valu.rs,crates/xcl/src/gpu/recomp/emit.rs,mod.rs,pso.rs.fidelity_tests/attribute_tests:lds_16bit_straddling_dword_boundary_hlsl,direct_dxil_lds_dword_straddling_16bit_validate,direct_dxil_infinite_loop_guarded_by_shader_loop_limit,direct_dxil_mixed_fp16_interp_preserves_half_across_ssa_phi,direct_dxil_mesh_non_uniform_barrier_guard(including full-32KB-LDS TGSM check), andfssm_16bit_packed_tables_and_slot_mapping(r0same-registerf16.xy/.zw).Tested
rustc 1.99.1 (58cf8f9c3 2026-10-13), DXCdxcompiler 1.8.2502.11/dxil 1.8.2502.11, stacked on#1975(865350cc) over1c17aa55(1447cf9f).cargo check --workspace --tests: passed (0warnings in touched files).cargo test -p xcl --lib fidelity_tests: 19 passed, 0 failed (dxil 1.8.2502.11validated).cargo test -p xcl --lib attribute_tests: 4 passed, 0 failed.Regression run
scripts/smoke.ps1pair on1447cf9fvs1c17aa55has not been run yet. AMD and NVIDIA reviewers are invited to test on1447cf9fvs1c17aa55(includingscripts/smoke.ps1,XCL_DIRECT_DXIL=1, and multi-wave mesh /f16PS workloads) and post results in the comments.Not tested
scripts/smoke.ps1pair on1447cf9f, fullcargo test --workspacesuite on1447cf9f, runtime GPU execution across AMD / NVIDIA / Intel hardware, and Linux/Wine/vkd3d-proton.AI use
1c17aa55, trimming, and DXIL/recompiler validation tests; the author reviewed the diff and test output.