Shaders: skip redundant heap clamps on host memory/consts, clear stale DOUBLES flag, fix v_permlane and wave32 f64 sum (#505) #598
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/598"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Imported from fxceless/victory-fork. Originally posted by orazal12 on 2026-11-25T02:49:54Z.
Addresses DXIL regressions introduced between
2119b0eanda803c87(Refs #505):VIEW_LIMITclamps on host-owned memory & in-bounds constants:Lower::memory()now usesheap_handle_unclampedfor host-ownedSLOT_MEMORYindices, andheap_handleskips emittingdx.op.binary.i32UMin for compile-time constants already within bounds. Dynamic title-controlled heap indices and out-of-bounds constants still clamp.flags::DOUBLESafter dead-code elimination: tracksTypeDef::DoubleinUsage::doublesand clearsflags::DOUBLESinShader::finish()whenopt::DEADremoves all double ops.v_permlane*inconsole_lanes: adds|| n.starts_with(v_permlane)inlower.rssov_permlane16_b32/v_permlanex16_b32shaders emitWaveSizemetadata and don't tripdebug_assert!(self.console_lanes).active_f64_sumwave32 exchange guard: matchesshape()(!self.local && self.exchange.as_ref().is_some_and(|e| !e.1)) so small groups / local waves on 32-lane GPUs don't emit invalid LDS exchange barriers.Verification:
cargo test -p victory-shader --offline: 218 passed, 0 failed (4 new unit tests validating withdxil.dll)cargo test -p xtask --offline: 4 passed (asset policy check ok)cargo clippy -p victory-shader --all-targets --offline -- -D warnings: 0 warningsView command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.