Mesa (master): intel: Mark MESA_FORMAT_X8_Z24 as always supported.

Eric Anholt anholt at kemper.freedesktop.org
Thu Jul 7 21:46:25 UTC 2011


Module: Mesa
Branch: master
Commit: 86e62b2357447b7c97f434be4834f4b50aa0764d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=86e62b2357447b7c97f434be4834f4b50aa0764d

Author: Eric Anholt <eric at anholt.net>
Date:   Wed Jun 15 12:02:12 2011 -0700

intel: Mark MESA_FORMAT_X8_Z24 as always supported.

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 at chad-versace.us>

---

 src/mesa/drivers/dri/intel/intel_context.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/drivers/dri/intel/intel_context.c b/src/mesa/drivers/dri/intel/intel_context.c
index 70aee52..547d81b 100644
--- a/src/mesa/drivers/dri/intel/intel_context.c
+++ b/src/mesa/drivers/dri/intel/intel_context.c
@@ -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;
 
    /*




More information about the mesa-commit mailing list