Mesa (master): i915: Fix depth texturing since 86e62b2357447b7c97f434be4834f4b50aa0764d

Eric Anholt anholt at kemper.freedesktop.org
Tue Jul 12 21:41:42 UTC 2011


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

Author: Eric Anholt <eric at anholt.net>
Date:   Mon Jul 11 11:42:00 2011 -0700

i915: Fix depth texturing since 86e62b2357447b7c97f434be4834f4b50aa0764d

The 965 driver already had the X8_Z24 case, but 915 was missing it.

Reviewed-by: Ian Romanick <ian.d.romanick at intel.com>

---

 src/mesa/drivers/dri/i915/i915_texstate.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/mesa/drivers/dri/i915/i915_texstate.c b/src/mesa/drivers/dri/i915/i915_texstate.c
index 90ebee3..7cd6820 100644
--- a/src/mesa/drivers/dri/i915/i915_texstate.c
+++ b/src/mesa/drivers/dri/i915/i915_texstate.c
@@ -82,6 +82,7 @@ translate_texture_format(gl_format mesa_format, GLenum DepthMode)
    case MESA_FORMAT_RGBA_DXT5:
       return (MAPSURF_COMPRESSED | MT_COMPRESS_DXT4_5);
    case MESA_FORMAT_S8_Z24:
+   case MESA_FORMAT_X8_Z24:
       if (DepthMode == GL_ALPHA)
 	 return (MAPSURF_32BIT | MT_32BIT_x8A24);
       else if (DepthMode == GL_INTENSITY)




More information about the mesa-commit mailing list