i965: stop calling nir_lower_returns()
authorTimothy Arceri <tarceri@itsqueeze.com>
Thu, 21 Feb 2019 00:54:09 +0000 (11:54 +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/mesa/drivers/dri/i965/brw_program.c

index e58ed7c8e48f7fa552cef413c1b816d9dd21fd33..4f9b7aa71d76cbf876b6521ae8bc058db965c25c 100644 (file)
@@ -98,9 +98,7 @@ brw_create_nir(struct brw_context *brw,
       assert (nir);
 
       nir_remove_dead_variables(nir, nir_var_shader_in | nir_var_shader_out);
-      nir_lower_returns(nir);
-      nir_validate_shader(nir, "after glsl_to_nir or spirv_to_nir and "
-                               "return lowering");
+      nir_validate_shader(nir, "after glsl_to_nir or spirv_to_nir");
       NIR_PASS_V(nir, nir_lower_io_to_temporaries,
                  nir_shader_get_entrypoint(nir), true, false);
    } else {