cell: remove old surface_map code
authorBrian Paul <brianp@vmware.com>
Thu, 19 Feb 2009 04:35:56 +0000 (21:35 -0700)
committerBrian Paul <brianp@vmware.com>
Thu, 19 Feb 2009 04:35:56 +0000 (21:35 -0700)
src/gallium/drivers/cell/ppu/cell_clear.c

index c2e276988cadf8d7927beb5c1d7c8f46a86929fc..39c5f937b9c1c8fef9da1456ac9f6408893f62d3 100644 (file)
@@ -77,11 +77,6 @@ cell_clear_surface(struct pipe_context *pipe, struct pipe_surface *ps,
    if (cell->dirty)
       cell_update_derived(cell);
 
-
-   if (!cell->cbuf_map[0])
-      cell->cbuf_map[0] = screen->surface_map(screen, ps,
-                                              PIPE_BUFFER_USAGE_GPU_WRITE);
-
    if (ps == cell->framebuffer.zsbuf) {
       /* clear z/stencil buffer */
       surfIndex = 1;