Skip to content

lima: lower fmod in ppir and gpir

Erico Nunes requested to merge enunes/mesa:lima-lower-fmod into master

Since commit 4f3c82c7 fmod is no longer being lowered in nir, and ends up crashing lima programs with "unsupported nir_op: fmod" in both ppir and gpir. There seems to be no mod operation in hardware in utgard and there is an optimization in nir to lower fmod to instructions that lima already implements, so let's use that.

Merge request reports