Repository navigation
Conversation
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.
Parked here until its base exists upstream. Not proposed for merging before Marvisak#3158 and Marvisak#3192 are in; then it gets rebased on the new
mainand opened there.What
One helper,
float_mods(abs, neg, f), replaces the block that appliedabsand thennegto a float source, which was written out in six places inemit/lower.rs:fsrc, the f32 accumulator ofv_fmac_f32/v_mac_f32/v_mac_legacy_f32, the three sources ofv_fma_mix*(where the bit passed asabsis the measuredneg_hi),half_fsrc, the f16 accumulator, andpacked16(negonly).No behaviour change is intended: each replaced block has the same two steps as the helper,
absas the unary op,negas-0.0 - x. The bitwise paths stay on the bits:v_cubesc_f32/v_cubetc_f32from Marvisak#3127 andv_cndmask_b32.The helper was suggested in review on Marvisak#3192.
Why now
lower.rsis 520,563 bytes onmain(63bcca4) and the policy cap is 524,288. Marvisak#3127 adds 3,167, Marvisak#3158 adds 284, Marvisak#3192 adds 336: together 524,350, 62 bytes over. Whichever of the three goes in last would failrepository_passes_policy. With this commit the file is 523,817 bytes, 471 under the cap.Base
ci/a13-stack-baseismainwith the heads of the three pull requests merged (de77244,cf8f543,9874157). The merges conflict only insemantics_tests.rs, where each side appended whole tests; both sides are kept. This pull request is the one commit on top:lower.rsonly, +16 −35, no test file touched.Evidence
repository_passes_policyalone (lower.rs: 524350 bytes exceeds the 524288-byte limit); 310victory-shadertests pass.repository_passes_policy ... ok.victory-shader310,victory-gpu231, policy 6 of 6).victory-shaderon WARP: 306 pass, 4 fail, the same four that fail on unmodified63bcca4on this machine (threeno pipeline for a wave of 32, one gather test). 21 tests matchingfmac cube mixed_precision packed sixteen_bit modifierspass on an AMD integrated Radeon and on an NVIDIA RTX 2060.Not checked
victory-shaderandxtaskonly; the whole workspace ran once, in this pull request's own check.rustfmtreports older lines oflower.rsthat this commit does not touch.Synthetic tests only; no game files.
— Devin & Fable