summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2010-01-21 18:25:31 -0700
committerBrian Paul <[email protected]>2010-01-21 18:25:31 -0700
commit798a9d3f942df1953a538073c85d6a6fed3775db (patch)
treecfeda85f2316a61f304cb42e9cd364f3f1d116dd /src/gallium/drivers
parentff9b55da9a6e3b5aa2d42eac7d79c675a679af57 (diff)
llvmpipe: re-use a1 var in linear_coef()
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_setup_tri.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_setup_tri.c b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
index b637c35735b..15534756c4a 100644
--- a/src/gallium/drivers/llvmpipe/lp_setup_tri.c
+++ b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
@@ -89,7 +89,7 @@ static void linear_coef( struct lp_rast_triangle *tri,
* to define a0 as the sample at a pixel center somewhere near vmin
* instead - i'll switch to this later.
*/
- tri->inputs.a0[slot][i] = (v1[vert_attr][i] -
+ tri->inputs.a0[slot][i] = (a1 -
(dadx * (v1[0][0] - 0.5f) +
dady * (v1[0][1] - 0.5f)));
}