summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/cell
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-01-11 11:35:03 -0700
committerBrian <[email protected]>2008-01-11 11:35:03 -0700
commit7db94ba03173f345a47fd727e8d866a87a484415 (patch)
treec0d5ee2f29a6de467518fa55ee572ac9d5bfcf40 /src/mesa/pipe/cell
parent6b5d674f915b67f3b51c331e3a6ba02e9f82473f (diff)
Cell: remove obsolete cell_prim_buffer struct and code
Diffstat (limited to 'src/mesa/pipe/cell')
-rw-r--r--src/mesa/pipe/cell/common.h14
-rw-r--r--src/mesa/pipe/cell/ppu/cell_context.c5
-rw-r--r--src/mesa/pipe/cell/ppu/cell_context.h2
3 files changed, 2 insertions, 19 deletions
diff --git a/src/mesa/pipe/cell/common.h b/src/mesa/pipe/cell/common.h
index 60abe2d9bcf..c00cee6a02d 100644
--- a/src/mesa/pipe/cell/common.h
+++ b/src/mesa/pipe/cell/common.h
@@ -54,6 +54,7 @@
#define CELL_CMD_RENDER 5
+
/**
* Tell SPUs about the framebuffer size, location
*/
@@ -77,6 +78,7 @@ struct cell_command_clear_surface
#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;
@@ -106,16 +108,4 @@ struct cell_init_info
} 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 */
diff --git a/src/mesa/pipe/cell/ppu/cell_context.c b/src/mesa/pipe/cell/ppu/cell_context.c
index defce2869a5..000217b2590 100644
--- a/src/mesa/pipe/cell/ppu/cell_context.c
+++ b/src/mesa/pipe/cell/ppu/cell_context.c
@@ -240,11 +240,6 @@ cell_create_context(struct pipe_winsys *winsys, struct cell_winsys *cws)
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
*/
diff --git a/src/mesa/pipe/cell/ppu/cell_context.h b/src/mesa/pipe/cell/ppu/cell_context.h
index 4ff39a53c67..d7754d5d61f 100644
--- a/src/mesa/pipe/cell/ppu/cell_context.h
+++ b/src/mesa/pipe/cell/ppu/cell_context.h
@@ -96,8 +96,6 @@ struct cell_context
uint num_spus;
-
- struct cell_prim_buffer prim_buffer;
};