Shader: propagate float values across selects/phis and cache bools across dominators #1397
No reviewers
Labels
No labels
accessibility
area: build
area: formats
area: gpu
area: loader
area: runtime
area: shader
bug
documentation
duplicate
enhancement
good first issue
gpu: amd
gpu: intel
gpu: nvidia
help wanted
host: wine
invalid
out of scope
question
request
run report
triage: confirmed
triage: has patch
triage: merge candidate
triage: needs info
triage: needs rebase
triage: needs work
triage: proposed close
wontfix
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
github/Marvisak--VIctory!1397
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-1397"
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?
@wbkepler on GitHub · 2026-11-24 17:43 UTC · original
wbkepler:shader/dxil-float-bool-prop→main· +737 −137 · 3 files · 1 commits · openSummary
Rebased cleanly onto
upstream/main(ffe310e):Val::F32inemit/lower.rsandinfer_float_phisso float ALU results, float inputs/interpolations, non-d16image/typed-buffer loads, guarded float writes, floatv_mov_b32/v_cndmask_b32, and float-only SSA phis stay nativef32without eagerf32<->i32bitcast roundtrips.i32<->f32/undef, andbitcast(bitcast(x))roundtrips directly inbitcode::Module::cast, and constructsf32constants directly inLower::fsrc.dxil_idom) fromir::idoms, guarded splits, and critical edges soLower::booleanandLower::atomreuse dominatingi1values without leaking across non-dominating sibling blocks.Verification
cargo clippy -p victory-shader --all-targets— passedcargo test -p victory-shader— passedcargo xtask policy— passed@sinan-cmyk on GitHub · 2026-11-24 19:50 UTC · original
Offline measurement on a retail dump, and the shader tests on Ada
Result: no count change against
main.Offline. I merged head
a78fc2contomainffe310e(clean merge) and ranvictory translate --validate --listonshaders.rpf(1.0.2.1), with dxil.dll 1.8.2502.11. I compared the result withmainprogram by program (25,889 programs). Validated: 21,724 onmain, 21,724 with this PR.No program changes its failure reason either. That is the expected result for a fix whose instructions sit behind the earlier failures on
main. The count shows that the change rejects nothing. It does not show whether the output is right.Tests: with the same merge,
cargo test --locked -p victory-shader --libpassed 123, failed 0. The bitcode benchmark is ignored, as onmain, where 120 pass. The run was on an RTX 4070 SUPER (Ada, 32-lane waves, driver 32.0.16.1088), the default adapter, withVICTORY_WARPunset.No shader names or data are included, per the asset policy. AI-assisted (Claude Code).
@Marvisak on GitHub · 2026-11-25 01:25 UTC · original
Automated triage for the maintainers.
Needs rebase. This pull request conflicts with
main(conflicting:crates/victory-shader/src/emit/lower.rs,crates/victory-shader/src/emit/valu_tests.rs). It will be reviewed once it is rebased onto the currentmain.Generated by Claude Code
View 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.