llvmpipe: More accurate format capability exporting.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 31 Mar 2010 13:00:46 +0000 (14:00 +0100)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 31 Mar 2010 13:00:46 +0000 (14:00 +0100)
src/gallium/drivers/llvmpipe/lp_screen.c

index f1bbc2092c432d9e72462bd1f4b65f674acd8dc6..3d6c7930a06d540da7085b62d90eb9154606d556 100644 (file)
@@ -222,11 +222,7 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
 
    /* FIXME: Temporary restrictions. See lp_bld_sample_soa.c */
    if(tex_usage & PIPE_TEXTURE_USAGE_SAMPLER) {
-      if(format_desc->block.width != 1 ||
-         format_desc->block.height != 1)
-         return FALSE;
-
-      if(format_desc->layout != UTIL_FORMAT_LAYOUT_PLAIN)
+      if(!format_desc->is_bitmask)
          return FALSE;
 
       if(format_desc->colorspace != UTIL_FORMAT_COLORSPACE_RGB &&