Mesa (master): cell: fix breakage from earlier draw module changes

Brian Paul brianp at kemper.freedesktop.org
Fri May 21 15:58:24 UTC 2010


Module: Mesa
Branch: master
Commit: 6e0efad38b25cb6a143f25ef0a1a86c464f4faef
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=6e0efad38b25cb6a143f25ef0a1a86c464f4faef

Author: Brian Paul <brianp at vmware.com>
Date:   Fri May 21 09:28:07 2010 -0600

cell: fix breakage from earlier draw module changes

---

 src/gallium/drivers/cell/ppu/cell_context.c    |    2 +-
 src/gallium/drivers/cell/ppu/cell_pipe_state.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/gallium/drivers/cell/ppu/cell_context.c b/src/gallium/drivers/cell/ppu/cell_context.c
index 49cece5..411f204 100644
--- a/src/gallium/drivers/cell/ppu/cell_context.c
+++ b/src/gallium/drivers/cell/ppu/cell_context.c
@@ -73,7 +73,7 @@ cell_destroy_context( struct pipe_context *pipe )
 static struct draw_context *
 cell_draw_create(struct cell_context *cell)
 {
-   struct draw_context *draw = draw_create();
+   struct draw_context *draw = draw_create(&cell->pipe);
 
 #if 0 /* broken */
    if (getenv("GALLIUM_CELL_VS")) {
diff --git a/src/gallium/drivers/cell/ppu/cell_pipe_state.c b/src/gallium/drivers/cell/ppu/cell_pipe_state.c
index 8c975c6..f4c614e 100644
--- a/src/gallium/drivers/cell/ppu/cell_pipe_state.c
+++ b/src/gallium/drivers/cell/ppu/cell_pipe_state.c
@@ -197,7 +197,7 @@ cell_bind_rasterizer_state(struct pipe_context *pipe, void *rast)
    struct cell_context *cell = cell_context(pipe);
 
    /* pass-through to draw module */
-   draw_set_rasterizer_state(cell->draw, rasterizer);
+   draw_set_rasterizer_state(cell->draw, rasterizer, rast);
 
    cell->rasterizer = rasterizer;
 




More information about the mesa-commit mailing list