llvmpipe: Support Z16_UNORM as depth-stencil format.
[mesa.git] / src / gallium / drivers / llvmpipe / lp_screen.c
index 872967caeef65a75e8920eaea817ea86f8bd8210..de80c6fdc6b4fab5e0eac5169826056181c46b69 100644 (file)
@@ -302,10 +302,6 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
    if (!format_desc)
       return FALSE;
 
-   /* Z16 support is missing, which breaks the blit */
-   if (format == PIPE_FORMAT_Z16_UNORM)
-      return FALSE;
-
    assert(target == PIPE_BUFFER ||
           target == PIPE_TEXTURE_1D ||
           target == PIPE_TEXTURE_1D_ARRAY ||
@@ -360,8 +356,8 @@ llvmpipe_is_format_supported( struct pipe_screen *_screen,
       if (format_desc->colorspace != UTIL_FORMAT_COLORSPACE_ZS)
          return FALSE;
 
-      /* FIXME: Temporary restriction. See lp_state_fs.c. */
-      if (format_desc->block.bits != 32)
+      /* FIXME: Temporary restriction. See lp_bld_depth.c. */
+      if (format_desc->block.bits > 32)
          return FALSE;
    }