nir: Make lower_wpos_ytransform_block a void function.
authorKenneth Graunke <kenneth@whitecape.org>
Wed, 18 May 2016 18:19:00 +0000 (11:19 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Fri, 20 May 2016 21:29:04 +0000 (14:29 -0700)
The return value was used for the old nir_foreach_block callback system,
but at this point it no longer means anything.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Rob Clark <robdclark@gmail.com>
src/compiler/nir/nir_lower_wpos_ytransform.c

index c437b3a27970cb0cd562d0fe1f7ec98be978c03f..7741df216a2f715e5a809e8942727ce4a2e2a8a8 100644 (file)
@@ -276,7 +276,7 @@ lower_interp_var_at_offset(lower_wpos_ytransform_state *state,
                                                      flip_y)));
 }
 
-static bool
+static void
 lower_wpos_ytransform_block(lower_wpos_ytransform_state *state, nir_block *block)
 {
    nir_foreach_instr_safe(instr, block) {
@@ -301,8 +301,6 @@ lower_wpos_ytransform_block(lower_wpos_ytransform_state *state, nir_block *block
             lower_fddy(state, alu);
       }
    }
-
-   return true;
 }
 
 static void