summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/cell/spu/main.h
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-01-02 18:53:33 -0700
committerBrian <[email protected]>2008-01-02 18:53:33 -0700
commitde9f8e8b717aa4b4ab94af73be5aa70088cd6b81 (patch)
tree0ce4fc6110517e7ccdf5a3781663c80adfe516ae /src/mesa/pipe/cell/spu/main.h
parentda92ac01e80e8a83233b1d4a881503bfc2806a1a (diff)
Cell: basic triangle rendering works.
The cell "render_stage" (last in the "draw" pipeline) emits vertices into a buffer which is pulled by the SPUs in response to a "RENDER" command. This is pretty much temporary/scaffold code for now.
Diffstat (limited to 'src/mesa/pipe/cell/spu/main.h')
-rw-r--r--src/mesa/pipe/cell/spu/main.h13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/mesa/pipe/cell/spu/main.h b/src/mesa/pipe/cell/spu/main.h
index 8c2796387fd..47ce4be4b44 100644
--- a/src/mesa/pipe/cell/spu/main.h
+++ b/src/mesa/pipe/cell/spu/main.h
@@ -37,13 +37,16 @@
extern volatile struct cell_init_info init;
struct framebuffer {
- void *start;
- uint width, height;
+ void *start; /**< addr of surface in main memory */
+ uint width, height; /**< size in pixels */
uint width_tiles, height_tiles; /**< width and height in tiles */
};
+/* XXX Collect these globals in a struct: */
+
extern struct framebuffer fb;
+extern uint tile[TILE_SIZE][TILE_SIZE] ALIGN16_ATTRIB;
extern int DefaultTag;
@@ -52,10 +55,12 @@ void
wait_on_mask(unsigned tag);
void
-get_tile(const struct framebuffer *fb, uint tx, uint ty, uint *tile);
+get_tile(const struct framebuffer *fb, uint tx, uint ty, uint *tile,
+ int tag);
void
-put_tile(const struct framebuffer *fb, uint tx, uint ty, const uint *tile);
+put_tile(const struct framebuffer *fb, uint tx, uint ty, const uint *tile,
+ int tag);
#endif /* MAIN_H */