summaryrefslogtreecommitdiffstats
path: root/src/mesa/pipe/cell/spu/tri.c
diff options
context:
space:
mode:
authorBrian <[email protected]>2008-01-02 18:58:44 -0700
committerBrian <[email protected]>2008-01-02 18:58:44 -0700
commitd55c4ec9d2c0a8cd9ba75985962297381e6c0364 (patch)
treea7b76ebaa86f55a447ff65a4de280c8d9f084dfb /src/mesa/pipe/cell/spu/tri.c
parentde9f8e8b717aa4b4ab94af73be5aa70088cd6b81 (diff)
remove previous triangle test code
Diffstat (limited to 'src/mesa/pipe/cell/spu/tri.c')
-rw-r--r--src/mesa/pipe/cell/spu/tri.c23
1 files changed, 4 insertions, 19 deletions
diff --git a/src/mesa/pipe/cell/spu/tri.c b/src/mesa/pipe/cell/spu/tri.c
index ce759a56470..4e198e638cb 100644
--- a/src/mesa/pipe/cell/spu/tri.c
+++ b/src/mesa/pipe/cell/spu/tri.c
@@ -868,25 +868,10 @@ struct draw_stage *sp_draw_render_stage( struct softpipe_context *softpipe )
#endif
-void
-draw_triangle(struct prim_header *tri, uint tx, uint ty)
-{
- /* set clipping bounds to tile bounds */
- cliprect_minx = tx * TILE_SIZE;
- cliprect_miny = ty * TILE_SIZE;
- cliprect_maxx = (tx + 1) * TILE_SIZE;
- cliprect_maxy = (ty + 1) * TILE_SIZE;
-
- get_tile(&fb, tx, ty, (uint *) tile, DefaultTag);
- wait_on_mask(1 << DefaultTag);
-
- setup_tri(tri);
-
- put_tile(&fb, tx, ty, (uint *) tile, DefaultTag);
- wait_on_mask(1 << DefaultTag);
-}
-
-
+/**
+ * Draw triangle into tile at (tx, ty) (tile coords)
+ * The tile data should have already been fetched.
+ */
void
tri_draw(struct prim_header *tri, uint tx, uint ty)
{