From 8a70a4d9844f7aa50cc6ef16a5f79ba86bc11eaa Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Fri, 25 Nov 2016 20:29:30 -0500 Subject: swr: [rasterizer core] fix typo in scissor tile-alignment logic Signed-off-by: Ilia Mirkin Reviewed-by: Tim Rowley --- src/gallium/drivers/swr/rasterizer/core/api.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gallium/drivers/swr/rasterizer') diff --git a/src/gallium/drivers/swr/rasterizer/core/api.cpp b/src/gallium/drivers/swr/rasterizer/core/api.cpp index 383a7ad65be..6c0d5dd68e2 100644 --- a/src/gallium/drivers/swr/rasterizer/core/api.cpp +++ b/src/gallium/drivers/swr/rasterizer/core/api.cpp @@ -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; -- cgit v1.2.3