st/glsl_to_nir: disable st_nir_lower_builtin() when packing supported
authorTimothy Arceri <tarceri@itsqueeze.com>
Fri, 26 Jun 2020 05:28:51 +0000 (15:28 +1000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 30 Jun 2020 01:29:43 +0000 (01:29 +0000)
commit64a2500a6975f7ea42c93f5c20dc295e99f3b612
treef4ca15c21b34a1d7099f289679211cee114d7bea
parent4cca5137aed20c93bfcb57324d094f585984c0c9
st/glsl_to_nir: disable st_nir_lower_builtin() when packing supported

There is no need to lower builtins when uniform packing is
supported by the driver. Lowering is only required by other drivers
because we prepack builtin uniforms.

Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3140
CC: <stable@lists.freedesktop.org>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Eric Anholt <eric@anholt.net>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5656>
src/mesa/state_tracker/st_glsl_to_nir.cpp