glsl: Set the precisions of builtin function arguments and returns.
authorEmma Anholt <emma@anholt.net>
Wed, 1 Mar 2023 23:31:21 +0000 (15:31 -0800)
committerMarge Bot <emma+marge@anholt.net>
Tue, 21 Mar 2023 00:51:24 +0000 (00:51 +0000)
commitbe2731f445ce1ff11d052fd8ca10742193d77d1e
treeed565f1a08609043bd30089d2944e5be9afc7dce
parent2e85c9a4226f718ec4768d5a84462a9f34d50326
glsl: Set the precisions of builtin function arguments and returns.

These have precision qualifiers defined in the spec, in which case we
should emit them them while generating builtin signatures and code.  We've
been special-casing them in GLSL lower_precision, but now we can just rely
on the precision qualifier of the builtin if non-NONE.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21666>
src/compiler/glsl/builtin_functions.cpp
src/compiler/glsl/lower_precision.cpp