Skip to content

ir3: Make trig replacement expression exact

Connor Abbott requested to merge cwabbott0/mesa:review/ir3-nir-trig-exact into main

This prevents other optimizations from associating the inner multiply, which can add inaccuracies that can lead to discontinuities around the boundary of the ffloor. We should use exactly the sequence that the blob uses to avoid problems.

Since fadd + fmul cannot be combined to ffma when exact is specified, we have to use ffma ourselves.

Fixes artifacts in PixMark Volplosion with !7458 (merged).

Merge request reports