swr: [rasterizer core] fix typo in scissor tile-alignment logic
authorIlia Mirkin <imirkin@alum.mit.edu>
Sat, 26 Nov 2016 01:29:30 +0000 (20:29 -0500)
committerIlia Mirkin <imirkin@alum.mit.edu>
Tue, 29 Nov 2016 00:41:13 +0000 (19:41 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tim Rowley <timothy.o.rowley@intel.com>
src/gallium/drivers/swr/rasterizer/core/api.cpp

index 383a7ad65bef952746b29263c762fe4d8a00a44e..6c0d5dd68e2a788daf76d90334c2612cef3f3819 100644 (file)
@@ -765,7 +765,7 @@ void SetupMacroTileScissors(DRAW_CONTEXT *pDC)
         tileAligned  = (scissorInFixedPoint.xmin % KNOB_TILE_X_DIM) == 0;
         tileAligned &= (scissorInFixedPoint.ymin % KNOB_TILE_Y_DIM) == 0;
         tileAligned &= (scissorInFixedPoint.xmax % KNOB_TILE_X_DIM) == 0;
-        tileAligned &= (scissorInFixedPoint.xmax % KNOB_TILE_Y_DIM) == 0;
+        tileAligned &= (scissorInFixedPoint.ymax % KNOB_TILE_Y_DIM) == 0;
 
         pState->scissorsTileAligned &= tileAligned;