summaryrefslogtreecommitdiff
path: root/src/mesa/pipe/cell/ppu/cell_context.h
diff options
context:
space:
mode:
authorBrian <brian.paul@tungstengraphics.com>2008-01-10 15:14:58 -0700
committerBrian <brian.paul@tungstengraphics.com>2008-01-10 15:14:58 -0700
commit763e30748e99064fafeb0d9b34de8d732732689c (patch)
treefcb54c0988c4ed30bec23ad375c1baf6e4ad1880 /src/mesa/pipe/cell/ppu/cell_context.h
parent2da5afbd3ffd50409fc729e166fe5133c7a7e7a8 (diff)
Cell: initial implementation of vbuf code.
The draw module's vbuf stage builds buffers of post-transformed vertices and issues draw-elements calls to render them. We'll pass the vertex and index buffers to the SPUs...
Diffstat (limited to 'src/mesa/pipe/cell/ppu/cell_context.h')
-rw-r--r--src/mesa/pipe/cell/ppu/cell_context.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/mesa/pipe/cell/ppu/cell_context.h b/src/mesa/pipe/cell/ppu/cell_context.h
index be985820d1..4ff39a53c6 100644
--- a/src/mesa/pipe/cell/ppu/cell_context.h
+++ b/src/mesa/pipe/cell/ppu/cell_context.h
@@ -33,10 +33,13 @@
#include "pipe/p_context.h"
#include "pipe/p_defines.h"
#include "pipe/draw/draw_vertex.h"
+#include "pipe/draw/draw_vbuf.h"
#include "cell_winsys.h"
#include "pipe/cell/common.h"
+struct cell_vbuf_render;
+
struct cell_vertex_shader_state
{
struct pipe_shader_state shader;
@@ -81,6 +84,9 @@ struct cell_context
/** The primitive drawing context */
struct draw_context *draw;
struct draw_stage *render_stage;
+
+ /** For post-transformed vertex buffering: */
+ struct cell_vbuf_render *vbuf_render;
struct draw_stage *vbuf;
struct vertex_info vertex_info;