radeonsi/nir: stop calling nir_lower_returns()
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 21 Feb 2019 01:15:18 +0000 (12:15 +1100)
committerTimothy Arceri <tarceri@itsqueeze.com>
Wed, 6 Mar 2019 23:05:20 +0000 (23:05 +0000)
We now call this for all drivers in glsl_to_nir() instead.

Reviewed-by: Eric Anholt <eric@anholt.net>
src/gallium/drivers/radeonsi/si_shader_nir.c

index 5e29c8f4ccd7d6948bd23a1379b67f595600f41d..0ead9348a56f2dcdbeb41f96a289ea5f4d6727f5 100644 (file)
@@ -839,7 +839,6 @@ si_lower_nir(struct si_shader_selector* sel)
         * - ensure constant offsets for texture instructions are folded
         *   and copy-propagated
         */
-       NIR_PASS_V(sel->nir, nir_lower_returns);
        NIR_PASS_V(sel->nir, nir_lower_vars_to_ssa);
        NIR_PASS_V(sel->nir, nir_lower_alu_to_scalar);
        NIR_PASS_V(sel->nir, nir_lower_phis_to_scalar);