intel: Mark MESA_FORMAT_X8_Z24 as always supported.
authorEric Anholt <eric@anholt.net>
Wed, 15 Jun 2011 19:02:12 +0000 (12:02 -0700)
committerEric Anholt <eric@anholt.net>
Thu, 7 Jul 2011 21:05:20 +0000 (14:05 -0700)
This prevents developer surprise at seeing a GL_DEPTH_COMPONENT
texture have stencil bits, and avoids the metaops path accidentally
copying stencil bits around in glCopyTexImage(GL_DEPTH_COMPONENT) (and
being broken because swrast's glReadPixels(GL_UNSIGNED_INT_24_8) is
broken).

Acked-by: Chad Versace <chad@chad-versace.us>
src/mesa/drivers/dri/intel/intel_context.c

index 70aee52bd14db78dfb7b6b1857a4c0432592e51a..547d81b9351d27d7c4de9baf0d4efa2474814415 100644 (file)
@@ -661,7 +661,7 @@ intelInitContext(struct intel_context *intel,
 
    /* Depth and stencil */
    ctx->TextureFormatSupported[MESA_FORMAT_S8_Z24] = GL_TRUE;
-   ctx->TextureFormatSupported[MESA_FORMAT_X8_Z24] = intel->has_separate_stencil;
+   ctx->TextureFormatSupported[MESA_FORMAT_X8_Z24] = GL_TRUE;
    ctx->TextureFormatSupported[MESA_FORMAT_S8] = intel->has_separate_stencil;
 
    /*