summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_rast.h
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-10-08 19:53:56 +0100
committerJosé Fonseca <[email protected]>2009-10-08 19:53:56 +0100
commitdf8cedf9898cfc9c2ff8d5249ab1fe316f575a84 (patch)
tree2ba00a12d68e0065801a48ca1f72c5ace1ac9465 /src/gallium/drivers/llvmpipe/lp_rast.h
parent7ef36171d5d58b97ffa179f824d77a9c339a7ae4 (diff)
llvmpipe: Adjust interpolation coeffs declaration.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_rast.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_rast.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast.h b/src/gallium/drivers/llvmpipe/lp_rast.h
index 41a7f5ebbf3..492e4b06ada 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast.h
+++ b/src/gallium/drivers/llvmpipe/lp_rast.h
@@ -61,11 +61,15 @@ struct lp_rast_shader_inputs {
*/
const struct lp_rast_state *state;
- /* Attribute interpolation: FIXME: reduce memory waste!
+ /* Attribute interpolation:
+ *
+ * First coefficient is position.
+ *
+ * FIXME: reduce memory waste!
*/
- float a0[PIPE_MAX_ATTRIBS][4];
- float dadx[PIPE_MAX_ATTRIBS][4];
- float dady[PIPE_MAX_ATTRIBS][4];
+ float a0[1 + PIPE_MAX_SHADER_INPUTS][4];
+ float dadx[1 + PIPE_MAX_SHADER_INPUTS][4];
+ float dady[1 + PIPE_MAX_SHADER_INPUTS][4];
};