swr: [rasterizer core] use parens to disambiguate operator precedence
authorTim Rowley <timothy.o.rowley@intel.com>
Tue, 3 May 2016 17:07:15 +0000 (11:07 -0600)
committerTim Rowley <timothy.o.rowley@intel.com>
Thu, 19 May 2016 21:25:06 +0000 (16:25 -0500)
Reviewed-by: Bruce Cherniak <bruce.cherniak@intel.com>
src/gallium/drivers/swr/rasterizer/core/frontend.cpp

index 08346106fbf9c98c221fee1d5e47b8b116228cba..c13280e455b5a9f8d49956cb4074d4af8fd7fc34 100644 (file)
@@ -1637,7 +1637,7 @@ void BinTriangles(
     int maskLo = _simd_movemask_pd(_simd_castsi_pd(_simd_cmpeq_epi64(vDet[0], _simd_setzero_si())));
     int maskHi = _simd_movemask_pd(_simd_castsi_pd(_simd_cmpeq_epi64(vDet[1], _simd_setzero_si())));
 
-    int cullZeroAreaMask = maskLo | ((maskHi << KNOB_SIMD_WIDTH / 2));
+    int cullZeroAreaMask = maskLo | (maskHi << (KNOB_SIMD_WIDTH / 2));
 
     uint32_t origTriMask = triMask;
     triMask &= ~cullZeroAreaMask;