Repository navigation
Conversation
…ED=0: as before) v_mac_legacy_f32 and v_mad_legacy_f32 become one multiply-add with flushed sources and the legacy zero rule. From fxceless f6a09d3, by way of fsrajner/VIctory-7900XTX c36478c (lips); the fourth point of avatarmanz#67.
UwUCammie
force-pushed
the
shader/legacy-mad-fused
branch
from
November 30, 2026 15:13
57d85f6 to
9195918
Compare
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.
Point 4 of #67:
v_mac_legacy_f32andv_mad_legacy_f32become oneFMadwith flushed sources and the legacy zero rule (a zero factor gives+0 + c, with the+0rule oflegacy_sumkept). From fsrajner/VIctory-7900XTX c36478c, originally fxceless f6a09d3.VICTORY_LEGACY_FUSED=0gives the old form; the cache keys on the switch only while it is on, so old caches keep their key.On RDNA cards the test of the two factors uses the same
min(|a|, |b|)form aslegacy_mul.There is a unit test over 1,728 cases, run on the card (RX 7900 XT, vkd3d-proton). One thing it showed: with the dxil-spirv in my vkd3d-proton
FMadstill comes out as a multiply and an add. dxil-spirv only made it a real FMA on 11 November (114e664ef), so the fused half depends on the vkd3d-proton build, while the flushing and the zero rule do not. The test takes either.Not done: refusals over the whole archive, and a close look at lips in a cutscene before and after. I ran about 2,800 frames with it and saw nothing wrong.
victory-shaderpasses exceptstub_pipeline_is_created, which also fails for me on plainlinux-wine.