softpipe: remove >32bpp color restriction
authorBrian Paul <brianp@vmware.com>
Sat, 23 Oct 2010 16:27:19 +0000 (10:27 -0600)
committerBrian Paul <brianp@vmware.com>
Sat, 23 Oct 2010 16:27:21 +0000 (10:27 -0600)
The comment was out of date.  The tile cache does handle >32-bit colors.

src/gallium/drivers/softpipe/sp_screen.c
src/gallium/drivers/softpipe/sp_tile_cache.h

index a2bfa1b..d90cf56 100644 (file)
@@ -209,13 +209,6 @@ softpipe_is_format_supported( struct pipe_screen *screen,
       if (format_desc->block.width != 1 ||
           format_desc->block.height != 1)
          return FALSE;
-
-      /*
-       * TODO: Unfortunately we cannot render into anything more than 32 bits
-       * because we encode color clear values into a 32bit word.
-       */
-      if (format_desc->block.bits > 32)
-         return FALSE;
    }
 
    if (bind & PIPE_BIND_DEPTH_STENCIL) {
index 031c7c1..4151a47 100644 (file)
@@ -86,7 +86,7 @@ struct softpipe_tile_cache
    struct softpipe_cached_tile *entries[NUM_ENTRIES];
    uint clear_flags[(MAX_WIDTH / TILE_SIZE) * (MAX_HEIGHT / TILE_SIZE) / 32];
    float clear_color[4];  /**< for color bufs */
-   uint clear_val;        /**< for z+stencil, or packed color clear value */
+   uint clear_val;        /**< for z+stencil */
    boolean depth_stencil; /**< Is the surface a depth/stencil format? */
 
    struct softpipe_cached_tile *tile;  /**< scratch tile for clears */