i965: add missing parens in vec4 visitor
authorDave Airlie <airlied@redhat.com>
Tue, 2 Sep 2014 00:13:02 +0000 (10:13 +1000)
committerDave Airlie <airlied@redhat.com>
Tue, 2 Sep 2014 01:07:11 +0000 (11:07 +1000)
coverity reported this, Matt said it look like missing parens,
not bad identing, so lets try that.

Cc: "10.2 10.3" <mesa-stable@lists.freedesktop.org>
Reviewed-by: Chris Forbes <chrisf@ijw.co.nz>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

index ce94db858f9478d4023074d5889f3a7a8d64bb02..fbf3d0135481e77c0a13c03d9dabab3a1f76f422 100644 (file)
@@ -2579,7 +2579,7 @@ vec4_visitor::visit(ir_texture *ir)
       } else if (ir->op == ir_txf_ms) {
          emit(MOV(dst_reg(MRF, param_base + 1, sample_index_type, WRITEMASK_X),
                   sample_index));
-         if (brw->gen >= 7)
+         if (brw->gen >= 7) {
             /* MCS data is in the first channel of `mcs`, but we need to get it into
              * the .y channel of the second vec4 of params, so replicate .x across
              * the whole vec4 and then mask off everything except .y
@@ -2587,6 +2587,7 @@ vec4_visitor::visit(ir_texture *ir)
             mcs.swizzle = BRW_SWIZZLE_XXXX;
             emit(MOV(dst_reg(MRF, param_base + 1, glsl_type::uint_type, WRITEMASK_Y),
                      mcs));
+         }
          inst->mlen++;
       } else if (ir->op == ir_txd) {
         const glsl_type *type = lod_type;