spirv: Mark phis as mediump instead of directly lowering them to 16 bit.
authorEmma Anholt <emma@anholt.net>
Thu, 25 Aug 2022 21:33:38 +0000 (14:33 -0700)
committerMarge Bot <emma+marge@anholt.net>
Thu, 1 Sep 2022 22:39:39 +0000 (22:39 +0000)
commite1588cdf9ecc26c51ae0df3a380e1ac781e41941
tree193933fb1937940bc7d4700cb46158085987f4c2
parent0cee5f3918ffd5cf4a70df009a2a4dccef6146e5
spirv: Mark phis as mediump instead of directly lowering them to 16 bit.

This reverts commit 6f25d45877a1e1a7ac6250a7d051d33485e0cba7, replacing it
with GLSL_PRECISION_MEDIUM.  The previous commit ended up not being the
right approach, as it affected only nir vars for spirv phis and not other
nir vars, and we want a tool that does both.  The new
nir_lower_mediump_vars pass can do that for you.

No fossil-db change for my angle fossils run on radv.

Reviewed-by: Matt Turner <mattst88@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/18259>
src/compiler/spirv/vtn_cfg.c