Skip to content

lima: ppir: implement sin and cos instructions

Erico Nunes requested to merge enunes/mesa-lima:lima-18.3-ppir-sin-cos into lima-18.3
As already mentioned in the lima project utgard documentation, for sin
and cos, the input has to multiplied by the constant 1/(2*pi),
presumably to simplify the hardware.
The binary compiler outputs a multiplication in the fragment shader to
compensate for this, do the same in ppir.

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>

Merge request reports

Loading