#define CELL_CMD_RENDER 5
+
/**
* Tell SPUs about the framebuffer size, location
*/
#define CELL_MAX_VBUF_SIZE (16 * 1024)
#define CELL_MAX_VBUF_INDEXES 1024
+#define CELL_MAX_ATTRIBS 2 /* temporary! */
struct cell_command_render
{
uint prim_type;
} ALIGN16_ATTRIB;
-/** Temporary */
-#define CELL_MAX_VERTS 240
-#define CELL_MAX_ATTRIBS 2
-struct cell_prim_buffer
-{
- float vertex[CELL_MAX_VERTS][CELL_MAX_ATTRIBS][4] ALIGN16_ATTRIB;
- float xmin, ymin, xmax, ymax;
- uint num_verts;
-} ALIGN16_ATTRIB;
-
-
-
#endif /* CELL_COMMON_H */
cell_init_vbuf(cell);
draw_set_rasterize_stage(cell->draw, cell->vbuf);
- cell->prim_buffer.xmin = 1e100;
- cell->prim_buffer.ymin = 1e100;
- cell->prim_buffer.xmax = -1e100;
- cell->prim_buffer.ymax = -1e100;
-
/*
* SPU stuff
*/