Mesa (lp-binning): llvmpipe: tighten up an assertion

Brian Paul brianp at kemper.freedesktop.org
Wed Dec 16 15:12:36 PST 2009


Module: Mesa
Branch: lp-binning
Commit: cdbcd96fdfe2c4d09e9b34cb083664d6b6e0558b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=cdbcd96fdfe2c4d09e9b34cb083664d6b6e0558b

Author: Brian Paul <brianp at vmware.com>
Date:   Tue Dec 15 15:39:48 2009 -0700

llvmpipe: tighten up an assertion

---

 src/gallium/drivers/llvmpipe/lp_rast.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/llvmpipe/lp_rast.c b/src/gallium/drivers/llvmpipe/lp_rast.c
index fd9cd67..ec87d90 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast.c
+++ b/src/gallium/drivers/llvmpipe/lp_rast.c
@@ -358,8 +358,8 @@ void lp_rast_shade_quads( struct lp_rasterizer *rast,
    masks[1][1][1][1] = mask & (1 << (1*8+1*4+1*2+1)) ? ~0 : 0;
 #endif
 
-   assert((x % 2) == 0);
-   assert((y % 2) == 0);
+   assert((x % 4) == 0);
+   assert((y % 4) == 0);
 
    ix = x % TILE_SIZE;
    iy = y % TILE_SIZE;



More information about the mesa-commit mailing list