summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_quad.h
diff options
context:
space:
mode:
authorJosé Fonseca <[email protected]>2009-08-19 15:32:45 +0100
committerJosé Fonseca <[email protected]>2009-08-29 09:21:35 +0100
commit17baa01bfbebf71c68aebea5196ebcb313612038 (patch)
tree88adc9a8270c824b5f523b3c985299ff6a6d14e8 /src/gallium/drivers/llvmpipe/lp_quad.h
parent7926b42d41058e5d2b99ba0e8810f93bc7c12d36 (diff)
llvmpipe: Put the position coefficients together with the inputs.
The automatic search'n'replace leaves lp_setup.c a bit ugly, but this code will be eventually code generated as well.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_quad.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_quad.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_quad.h b/src/gallium/drivers/llvmpipe/lp_quad.h
index d4b5fc5d860..92977495de9 100644
--- a/src/gallium/drivers/llvmpipe/lp_quad.h
+++ b/src/gallium/drivers/llvmpipe/lp_quad.h
@@ -93,9 +93,9 @@ struct quad_header_output
*/
struct quad_interp_coef
{
- float ALIGN16_ATTRIB a0[PIPE_MAX_SHADER_INPUTS][NUM_CHANNELS];
- float ALIGN16_ATTRIB dadx[PIPE_MAX_SHADER_INPUTS][NUM_CHANNELS];
- float ALIGN16_ATTRIB dady[PIPE_MAX_SHADER_INPUTS][NUM_CHANNELS];
+ float ALIGN16_ATTRIB a0[1 + PIPE_MAX_SHADER_INPUTS][NUM_CHANNELS];
+ float ALIGN16_ATTRIB dadx[1 + PIPE_MAX_SHADER_INPUTS][NUM_CHANNELS];
+ float ALIGN16_ATTRIB dady[1 + PIPE_MAX_SHADER_INPUTS][NUM_CHANNELS];
};
@@ -110,7 +110,6 @@ struct quad_header {
/* Redundant/duplicated:
*/
- const struct tgsi_interp_coef *posCoef;
const struct quad_interp_coef *coef;
};