diff options
author | Brian <brian.paul@tungstengraphics.com> | 2008-08-25 11:31:59 -0600 |
---|---|---|
committer | Brian <brian.paul@tungstengraphics.com> | 2008-08-25 11:31:59 -0600 |
commit | 6ba9fb9b6693904054ad4e1506ba42e324334b0a (patch) | |
tree | fdbf892bfba9558b9e263406d739cf3d1517cac0 /src/gallium/drivers/cell/ppu/cell_clear.c | |
parent | 60ac76175b6457ecc1cd8bd7a25cb79b2d529434 (diff) |
cell: asst fixes to get driver building/running again.
Note that SPU vertex transformation is disabled at this time.
Diffstat (limited to 'src/gallium/drivers/cell/ppu/cell_clear.c')
-rw-r--r-- | src/gallium/drivers/cell/ppu/cell_clear.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/cell/ppu/cell_clear.c b/src/gallium/drivers/cell/ppu/cell_clear.c index cee0917b63..a421c95c8e 100644 --- a/src/gallium/drivers/cell/ppu/cell_clear.c +++ b/src/gallium/drivers/cell/ppu/cell_clear.c @@ -48,6 +48,7 @@ void cell_clear_surface(struct pipe_context *pipe, struct pipe_surface *ps, unsigned clearValue) { + struct pipe_screen *screen = pipe->screen; struct cell_context *cell = cell_context(pipe); uint surfIndex; @@ -56,7 +57,8 @@ cell_clear_surface(struct pipe_context *pipe, struct pipe_surface *ps, if (!cell->cbuf_map[0]) - cell->cbuf_map[0] = pipe_surface_map(ps); + cell->cbuf_map[0] = screen->surface_map(screen, ps, + PIPE_BUFFER_USAGE_GPU_WRITE); if (ps == cell->framebuffer.zsbuf) { surfIndex = 1; |