ir3: initialize progress false before ir3_nir_lower_imul
authorTapani Pälli <tapani.palli@intel.com>
Thu, 13 Jun 2019 09:58:04 +0000 (12:58 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Fri, 14 Jun 2019 05:21:42 +0000 (08:21 +0300)
Removes a compiler warning about uninitialized variable.

Fixes: c02ffd2700c "ir3: Use the new NIR lowering pass for integer multiplication"
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Rob Clark <robclark@gmail.com>
Reviewed-by: Eduardo Lima <elima@igalia.com>
src/freedreno/ir3/ir3_context.c

index e572f33ef24f11869115f77f2ff9573726237bc4..49a7776164ebd67dd8ac79264f669e64e8279945 100644 (file)
@@ -90,7 +90,7 @@ ir3_context_init(struct ir3_compiler *compiler,
         * However, we want a final swing of a few passes to have a chance
         * at optimizing the result.
         */
-       bool progress;
+       bool progress = false;
        NIR_PASS(progress, ctx->s, ir3_nir_lower_imul);
        if (progress) {
                NIR_PASS_V(ctx->s, nir_opt_algebraic);