glsl: improve precision determination for calls
authorMarek Olšák <marek.olsak@amd.com>
Sat, 25 Jul 2020 02:06:21 +0000 (22:06 -0400)
committerMarge Bot <eric+marge@anholt.net>
Wed, 5 Aug 2020 22:04:47 +0000 (22:04 +0000)
commit92f5e94a9379ed8871890fc4ae8efccd156ac7de
treec777ce4dc555d7a8bd79cfd66780f0c4e0b8c37a
parent282a1e6288f6dfde7a5481fa43d350f755104452
glsl: improve precision determination for calls

Don't leave the precision as NONE for non-lowerable calls. Set it to HIGH
if a function really returns highp.

Reviewed-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6073>
src/compiler/glsl/lower_precision.cpp