From: Keith Whitwell Date: Tue, 5 Oct 2010 15:50:22 +0000 (+0100) Subject: llvmpipe: fix off-by-one in tri_16 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=ef3407672ed4c2c6d070384ea763e73b3da2240a;p=mesa.git llvmpipe: fix off-by-one in tri_16 --- diff --git a/src/gallium/drivers/llvmpipe/lp_rast_tri_tmp.h b/src/gallium/drivers/llvmpipe/lp_rast_tri_tmp.h index c8f9956fda4..2f032295126 100644 --- a/src/gallium/drivers/llvmpipe/lp_rast_tri_tmp.h +++ b/src/gallium/drivers/llvmpipe/lp_rast_tri_tmp.h @@ -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;