llvmpipe: Remove unused framebuffer stuff from the rasterizer.
authorJosé Fonseca <jfonseca@vmware.com>
Thu, 27 May 2010 15:38:02 +0000 (16:38 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Sun, 30 May 2010 15:39:14 +0000 (16:39 +0100)
src/gallium/drivers/llvmpipe/lp_rast.c
src/gallium/drivers/llvmpipe/lp_rast_priv.h

index 5e659a4b00438ac8990b7b43ea938f353813610a..386387b3a53f84f17412c84b575667bedd07d903 100644 (file)
@@ -61,16 +61,12 @@ lp_rast_begin( struct lp_rasterizer *rast,
    
    for (i = 0; i < rast->state.nr_cbufs; i++) {
       struct pipe_surface *cbuf = scene->fb.cbufs[i];
-      rast->cbuf[i].format = cbuf->texture->format;
-      rast->cbuf[i].tiles_per_row = align(cbuf->width, TILE_SIZE) / TILE_SIZE;
-      rast->cbuf[i].blocksize = 
-         util_format_get_blocksize(cbuf->texture->format);
-      rast->cbuf[i].map = llvmpipe_resource_map(cbuf->texture,
-                                               cbuf->face,
-                                               cbuf->level,
-                                               cbuf->zslice,
-                                               LP_TEX_USAGE_READ_WRITE,
-                                               LP_TEX_LAYOUT_NONE);
+      llvmpipe_resource_map(cbuf->texture,
+                            cbuf->face,
+                            cbuf->level,
+                            cbuf->zslice,
+                            LP_TEX_USAGE_READ_WRITE,
+                            LP_TEX_LAYOUT_NONE);
    }
 
    if (fb->zsbuf) {
@@ -105,7 +101,6 @@ lp_rast_end( struct lp_rasterizer *rast )
                              cbuf->face,
                              cbuf->level,
                              cbuf->zslice);
-      rast->cbuf[i].map = NULL;
    }
 
    /* Unmap z/stencil buffer */
index 9c2d445c14678cf907d9ccf934cc12eb459ae1b6..d33dd49f3a7dba7d4bf13bc7afdafaea80301b21 100644 (file)
@@ -79,13 +79,6 @@ struct lp_rasterizer
 
    /* Framebuffer stuff
     */
-   struct {
-      void *map;
-      unsigned tiles_per_row;
-      unsigned blocksize;
-      enum pipe_format format;
-   } cbuf[PIPE_MAX_COLOR_BUFS];
-
    struct {
       uint8_t *map;
       unsigned stride;