From b3247225423213c156ce4f428d1d246758a96d50 Mon Sep 17 00:00:00 2001 From: Brian Date: Thu, 10 Jan 2008 17:03:21 -0700 Subject: [PATCH] Cell: enable vbuf path by default --- src/mesa/pipe/cell/ppu/cell_context.c | 2 +- src/mesa/pipe/cell/ppu/cell_vbuf.c | 5 +---- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/src/mesa/pipe/cell/ppu/cell_context.c b/src/mesa/pipe/cell/ppu/cell_context.c index 091e593e1f6..52c97c939b9 100644 --- a/src/mesa/pipe/cell/ppu/cell_context.c +++ b/src/mesa/pipe/cell/ppu/cell_context.c @@ -237,7 +237,7 @@ cell_create_context(struct pipe_winsys *winsys, struct cell_winsys *cws) cell->draw = draw_create(); -#define VBUF 0 +#define VBUF 1 #if VBUF cell_init_vbuf(cell); draw_set_rasterize_stage(cell->draw, cell->vbuf); diff --git a/src/mesa/pipe/cell/ppu/cell_vbuf.c b/src/mesa/pipe/cell/ppu/cell_vbuf.c index cf468204bb1..059a0989143 100644 --- a/src/mesa/pipe/cell/ppu/cell_vbuf.c +++ b/src/mesa/pipe/cell/ppu/cell_vbuf.c @@ -84,7 +84,6 @@ cell_vbuf_set_primitive(struct vbuf_render *vbr, unsigned prim) } -#if 0 static void cell_vbuf_draw(struct vbuf_render *vbr, uint prim, @@ -130,7 +129,7 @@ cell_vbuf_draw(struct vbuf_render *vbr, cell_flush(&cell->pipe, 0x0); } -#endif + static void cell_vbuf_release_vertices(struct vbuf_render *vbr, void *vertices, @@ -167,9 +166,7 @@ cell_init_vbuf(struct cell_context *cell) cell->vbuf_render->base.get_vertex_info = cell_vbuf_get_vertex_info; cell->vbuf_render->base.allocate_vertices = cell_vbuf_allocate_vertices; cell->vbuf_render->base.set_primitive = cell_vbuf_set_primitive; -#if 0 cell->vbuf_render->base.draw = cell_vbuf_draw; -#endif cell->vbuf_render->base.release_vertices = cell_vbuf_release_vertices; cell->vbuf_render->base.destroy = cell_vbuf_destroy; -- 2.30.2