summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_setup_tri.c
diff options
context:
space:
mode:
authorKeith Whitwell <keithw@vmware.com>2009-10-09 12:19:49 +0100
committerKeith Whitwell <keithw@vmware.com>2009-10-09 12:19:49 +0100
commite215f94f15fd20919cc0ed500dc2efde4f076516 (patch)
tree90e883fd2880009002545180a83399b1668684f6 /src/gallium/drivers/llvmpipe/lp_setup_tri.c
parent4cdd10cb4b60d85f6c231a26739f7d5e264a05e5 (diff)
llvmpipe: get lp_setup_tri building
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_setup_tri.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup_tri.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_tri.c b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
index f927f9df91..5c402259df 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup_tri.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
@@ -315,9 +315,9 @@ do_triangle_ccw(struct setup_context *setup,
/* half-edge constants, will be interated over the whole
* rendertarget.
*/
- c1 = tri->dy12 * x1 - tri->dx12 * y1;
- c2 = tri->dy23 * x2 - tri->dx23 * y2;
- c3 = tri->dy31 * x3 - tri->dx31 * y3;
+ tri->c1 = tri->dy12 * x1 - tri->dx12 * y1;
+ tri->c2 = tri->dy23 * x2 - tri->dx23 * y2;
+ tri->c3 = tri->dy31 * x3 - tri->dx31 * y3;
/* correct for top-left fill convention:
*/
@@ -351,9 +351,9 @@ do_triangle_ccw(struct setup_context *setup,
minx &= ~(TILESIZE-1); /* aligned blocks */
miny &= ~(TILESIZE-1); /* aligned blocks */
- c1 += tri->dx12 * miny - tri->dy12 * minx;
- c2 += tri->dx23 * miny - tri->dy23 * minx;
- c3 += tri->dx31 * miny - tri->dy31 * minx;
+ c1 = tri->c1 + tri->dx12 * miny - tri->dy12 * minx;
+ c2 = tri->c2 + tri->dx23 * miny - tri->dy23 * minx;
+ c3 = tri->c3 + tri->dx31 * miny - tri->dy31 * minx;
/* Convert to tile coordinates:
*/