projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff9b55d
)
llvmpipe: re-use a1 var in linear_coef()
author
Brian Paul
<brianp@vmware.com>
Fri, 22 Jan 2010 01:25:31 +0000
(18:25 -0700)
committer
Brian Paul
<brianp@vmware.com>
Fri, 22 Jan 2010 01:25:31 +0000
(18:25 -0700)
src/gallium/drivers/llvmpipe/lp_setup_tri.c
patch
|
blob
|
history
diff --git
a/src/gallium/drivers/llvmpipe/lp_setup_tri.c
b/src/gallium/drivers/llvmpipe/lp_setup_tri.c
index b637c35735be624cb47f654f2ff84d04665f8eab..15534756c4a80818f346030ef536736204e28427 100644
(file)
--- 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)));
}