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

Brian Paul brianp at kemper.freedesktop.org
Fri May 21 15:57:17 UTC 2010


Module: Mesa
Branch: 7.8
Commit: 5c54b54e0036b9d1d491b6f00855c8ec93a53dd0
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5c54b54e0036b9d1d491b6f00855c8ec93a53dd0

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

cell: fix breakage from earlier draw module changes

(cherry picked from commit 6e0efad38b25cb6a143f25ef0a1a86c464f4faef)

---

 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 5bff986..b483935 100644
--- a/src/gallium/drivers/cell/ppu/cell_context.c
+++ b/src/gallium/drivers/cell/ppu/cell_context.c
@@ -74,7 +74,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 3d8b440..74a73b4 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