dri st: Don't require the PIPE_TEXTURE_USAGE_RENDER_TARGET property for depth- and...
authorThomas Hellstrom <thellstrom-at-vmware-dot-com>
Wed, 10 Jun 2009 22:54:06 +0000 (00:54 +0200)
committerThomas Hellstrom <thomas-at-tungstengraphics-dot-com>
Mon, 15 Jun 2009 09:48:57 +0000 (11:48 +0200)
Signed-off-by: Thomas Hellstrom <thellstrom-at-vmware-dot-com>
src/gallium/state_trackers/dri/dri_drawable.c

index 15a2088df5105410f5a12c8902ef71fef3035279..5846390d02c161b55c8c681342a1d2b6e1394757 100644 (file)
@@ -231,7 +231,6 @@ dri_create_buffer(__DRIscreenPrivate * sPriv,
    if (visual->depthBits) {
       if (pscreen->is_format_supported(pscreen, PIPE_FORMAT_Z24S8_UNORM,
                                       PIPE_TEXTURE_2D,
-                                      PIPE_TEXTURE_USAGE_RENDER_TARGET |
                                       PIPE_TEXTURE_USAGE_DEPTH_STENCIL, 0))
         depthFormat = PIPE_FORMAT_Z24S8_UNORM;
       else
@@ -242,7 +241,6 @@ dri_create_buffer(__DRIscreenPrivate * sPriv,
    if (visual->stencilBits) {
       if (pscreen->is_format_supported(pscreen, PIPE_FORMAT_Z24S8_UNORM,
                                       PIPE_TEXTURE_2D,
-                                      PIPE_TEXTURE_USAGE_RENDER_TARGET |
                                       PIPE_TEXTURE_USAGE_DEPTH_STENCIL, 0))
         stencilFormat = PIPE_FORMAT_Z24S8_UNORM;
       else