summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_rast_priv.h
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-10-08 12:44:30 +0100
committerJosé Fonseca <jfonseca@vmware.com>2009-10-08 12:44:30 +0100
commita6676d896ed18426ed3d7e6340347974c1694ca2 (patch)
treeb5c51f2325a5ffd079edf130119c60540594220b /src/gallium/drivers/llvmpipe/lp_rast_priv.h
parent5e13dfe6181952f0f538a77b8a9f91c1d7601ceb (diff)
llvmpipe: Add the rast -> jit shader glue.
Ugly code. Will eventually be reduced to a very thin inlined function.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_rast_priv.h')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_rast_priv.h18
1 files changed, 13 insertions, 5 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_rast_priv.h b/src/gallium/drivers/llvmpipe/lp_rast_priv.h
index 538ec22551..7eced38d67 100644
--- a/src/gallium/drivers/llvmpipe/lp_rast_priv.h
+++ b/src/gallium/drivers/llvmpipe/lp_rast_priv.h
@@ -3,16 +3,24 @@
#include "lp_rast.h"
+
+/* We can choose whatever layout for the internal tile storage we
+ * prefer:
+ */
+struct lp_rast_tile
+{
+ uint8_t *color;
+
+ uint8_t *depth;
+};
+
+
struct lp_rasterizer {
/* We can choose whatever layout for the internal tile storage we
* prefer:
*/
- struct {
- unsigned color[TILESIZE][TILESIZE];
- unsigned depth[TILESIZE][TILESIZE];
- char stencil[TILESIZE][TILESIZE];
- } tile;
+ struct lp_rast_tile tile;
unsigned x;