summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/llvmpipe/lp_rast.h
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2009-12-04 09:14:40 -0700
committerBrian Paul <[email protected]>2009-12-04 09:14:42 -0700
commit04e12e31b252e7a18862c3ac386f302665edb6e7 (patch)
tree88eccdac9fa17ff15082c5b5154850052900d73e /src/gallium/drivers/llvmpipe/lp_rast.h
parentc6057ab8ff8991eac9c73c267696b386f8e56c68 (diff)
llvmpipe: dynamic allocation of triangle a0/dadx/dady arrays
Much less memory per triangle now.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_rast.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_rast.h10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast.h b/src/gallium/drivers/llvmpipe/lp_rast.h
index ab21a778345..435993d44d2 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast.h
+++ b/src/gallium/drivers/llvmpipe/lp_rast.h
@@ -64,14 +64,12 @@ struct lp_rast_shader_inputs {
const struct lp_rast_state *state;
/* Attribute interpolation:
- *
* First coefficient is position.
- *
- * FIXME: reduce memory waste!
+ * These pointers point into the bin data buffer.
*/
- float a0[1 + PIPE_MAX_SHADER_INPUTS][4];
- float dadx[1 + PIPE_MAX_SHADER_INPUTS][4];
- float dady[1 + PIPE_MAX_SHADER_INPUTS][4];
+ float (*a0)[4];
+ float (*dadx)[4];
+ float (*dady)[4];
};