diff options
author | Brian <[email protected]> | 2008-01-10 17:01:52 -0700 |
---|---|---|
committer | Brian <[email protected]> | 2008-01-10 17:01:52 -0700 |
commit | 152f1d84d4d942d9e912b116c5fc67ba96ed9859 (patch) | |
tree | e71846fce7ffa225d37b2d9788beaaf5c99b5aa2 /src/mesa/pipe/cell/common.h | |
parent | cac8892ddb24ddb92b6f367689712925ee6c2d86 (diff) |
Cell: checkpoint: draw_vbuf code in place and works, but not enabled by default yet.
Diffstat (limited to 'src/mesa/pipe/cell/common.h')
-rw-r--r-- | src/mesa/pipe/cell/common.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/mesa/pipe/cell/common.h b/src/mesa/pipe/cell/common.h index d7de0beece2..dc2db299c48 100644 --- a/src/mesa/pipe/cell/common.h +++ b/src/mesa/pipe/cell/common.h @@ -52,6 +52,7 @@ #define CELL_CMD_CLEAR_SURFACE 3 #define CELL_CMD_FINISH 4 #define CELL_CMD_RENDER 5 +#define CELL_CMD_RENDER_VBUF 6 /** @@ -84,12 +85,26 @@ struct cell_command_render } ALIGN16_ATTRIB; +#define CELL_MAX_VBUF_SIZE (16 * 1024) +#define CELL_MAX_VBUF_INDEXES 1024 +struct cell_command_render_vbuf +{ + uint prim_type; + uint num_verts, num_attribs; + uint num_indexes; + const void *vertex_data; + const ushort *index_data; + float xmin, ymin, xmax, ymax; +} ALIGN16_ATTRIB; + + /** XXX unions don't seem to work */ struct cell_command { struct cell_command_framebuffer fb; struct cell_command_clear_surface clear; struct cell_command_render render; + struct cell_command_render_vbuf render_vbuf; } ALIGN16_ATTRIB; |