Repository navigation
Conversation
|
A hardware run of this PR's new test: |
ExoCalibra
added a commit
to ExoCalibra/victory-exo
that referenced
this pull request
Nov 25, 2026
ExoCalibra
added a commit
to ExoCalibra/victory-exo
that referenced
this pull request
Nov 25, 2026
HAL9000RELOADED
added a commit
to HAL9000RELOADED/victory-fork
that referenced
this pull request
Nov 26, 2026
… upstream VIctory fxceless#379)) head 18b9cfb
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.
Port of upstream
Marvisak/VIctory#379(originally authored by@LouisRiverstone).Summary
Adds DXIL lowering for the RDNA2 16-bit division fixup instruction
v_div_fixup_f16.Previously,
Lower::valu16did not handlev_div_fixup_f16, rejecting shaders that use half-precision division fixup sequences.Changes
crates/victory-shader/src/emit/lower.rs:"v_div_fixup_f16"toFLOAT3inLower::valu16and dispatched it toLower::div_fixup(a, b, acc)inLower::valu16_op(sohalf_fsrc/float_resultapply source/destinationop_sel,abs/neg,omod,clamp, and half preservation automatically).Lower::div_fixupfollowing the RDNA2 (gfx1036) ISA special-case precedence order on exact f32 representations: numerator NaN, denominator NaN,0/0orinf/inf-> qNaN,x/0orinf/x-> signed infinity,0/xorx/inf-> signed zero, quotient overflow / NaN -> signed infinity, otherwisecopysign(|q|, num ^ den).crates/victory-shader/src/emit/valu_tests.rs: addeddiv_fixup_f16_referenceand D3D12 WARP regression testv_div_fixup_f16_follows_the_isa_special_casesexercising 400 combinations of quotients, denominators, and numerators (including±0, subnormals,±inf, qNaN, sNaN, and verifying the upper 16 bits of the destination VGPR remain unchanged).Verification
Verified on
windows-latestvia GitHub Actions (run 45660058837):cargo clippy -p victory-shader -p xtask --all-targets --locked -- -D warnings— passedcargo clippy -p victory-shader -p xtask --all-targets --all-features --locked -- -D warnings— passedcargo test -p victory-shader -p xtask --locked -- --nocapture—216 passed; 0 failed; 3 ignored(includingv_div_fixup_f16_follows_the_isa_special_casesexecuted on D3D12 WARP, plusxtask4 passed,repository_passes_policypassed)— Neon