llvmpipe: fix off-by-one in tri_16
authorKeith Whitwell <keithw@vmware.com>
Tue, 5 Oct 2010 15:50:22 +0000 (16:50 +0100)
committerKeith Whitwell <keithw@vmware.com>
Fri, 8 Oct 2010 16:30:08 +0000 (17:30 +0100)
src/gallium/drivers/llvmpipe/lp_rast_tri_tmp.h

index c8f9956fda407725b39c682eb91c0eb50af913a7..2f032295126dce8bd524ec77a5daaa7f6dc5091a 100644 (file)
@@ -309,7 +309,7 @@ TRI_16(struct lp_rasterizer_task *task,
       partial_mask &= ~(1 << i);
 
       for (j = 0; j < NR_PLANES; j++) {
-         const int cx = (plane[j].c 
+         const int cx = (plane[j].c - 1
                         - plane[j].dcdx * px
                         + plane[j].dcdy * py) * 4;