Shaders: skip redundant heap clamps on host memory/consts, clear stale DOUBLES flag, fix v_permlane and wave32 f64 sum (#505) #598
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/fxceless--victory-fork!598
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-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?
@orazal12 on GitHub · 2026-11-25 02:49 UTC · original
orazal12:fix/issue-505-dxil-bugs→main· +347 −6 · 5 files · 1 commits · openAddresses 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
Manual merge helper
Use this merge commit message when completing the merge manually.
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.