pan/va: Lower FADD_RSCALE.f32 to FMA_RSCALE.f32
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 17 Jun 2022 14:40:27 +0000 (10:40 -0400)
committerMarge Bot <emma+marge@anholt.net>
Tue, 21 Jun 2022 22:42:34 +0000 (22:42 +0000)
commit9dd0bc92b588c37de2150b4cb9761188c3edce90
treec32f9c659f9e07bf5bc6a34af866a2c0c6134be9
parent1a882ecdab06d3cf3786698d23eb015c2baa332a
pan/va: Lower FADD_RSCALE.f32 to FMA_RSCALE.f32

We generate FADD_RSCALE.f32 in our sample variables implementations. Valhall
doesn't have a dedicated FADD_RSCALE.f32 implementation, it should be aliased to
FMA_RSCALE.f32. Handle that alias in isel lowering. This will fix:

   dEQP-GLES31.functional.shaders.multisample_interpolation.interpolate_at_offset.*

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17101>
src/panfrost/bifrost/valhall/test/test-lower-isel.cpp
src/panfrost/bifrost/valhall/va_lower_isel.c