Repository navigation
recomp/dxil: straddling 16-bit LDS, r0 f16 attrs, loop limit, and safe MS barriers - #1976
Open
raylitebull wants to merge 4 commits into
Open
raylitebull wants to merge 4 commits into
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
|
raylitebull
force-pushed
the
feat/recomp-ms32kb-lds-and-safe-barrier
branch
from
November 25, 2026 00:44
fed1358 to
561a6a9
Compare
Member
Author
|
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. |
…ing, and bounded movrel ranges
…n-uniform MS barriers
…LIMIT, and safe MS barriers
raylitebull
force-pushed
the
feat/recomp-ms32kb-lds-and-safe-barrier
branch
from
November 25, 2026 01:54
561a6a9 to
ec13a10
Compare
Member
Author
|
Rebased
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #1975 (extends
#1975's0b0e182+8da3917+a85fa25onae0518cwith commitec13a10).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).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
ec13a10on top of#1975(a85fa25):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), stacked on#1975(a85fa25) overae0518c(ec13a10).ec13a10was rebased cleanly ontoae0518c+a85fa25(with 32 KBpassthrough_splittrimmed to defer to Recompiler: the mesh pass-through budget accounts DXC’s vertex chunks #304 and#134PRELUDE_PIXELpreserved, via pure git during a local test hold); queued for GitHub ActionsBuild and testand fresh AMD / NVIDIA verification (fidelity_tests,attribute_tests,v_swaprel_b32_uses_the_m0_relative_switch).561a6a9(prior to#304trim /ae0518crebase) passedcargo check --workspace --tests,fidelity_tests(20/20),attribute_tests(4/4), andv_swaprel_b32_uses_the_m0_relative_switch(1/1).Regression run
scripts/smoke.ps1pair and tests onec13a10vsae0518chave not been run yet. AMD and NVIDIA reviewers are invited to test onec13a10vsae0518c(includingscripts/smoke.ps1,XCL_DIRECT_DXIL=1, and multi-wave mesh /f16PS workloads) and post results in the comments.Not tested
cargo check/fidelity_tests/attribute_testsand 60 sscripts/smoke.ps1pair onec13a10, fullcargo test --workspacesuite, runtime GPU execution across AMD / NVIDIA / Intel hardware, and Linux/Wine/vkd3d-proton.AI use