i915: Fix depth texturing since 86e62b2357447b7c97f434be4834f4b50aa0764d
authorEric Anholt <eric@anholt.net>
Mon, 11 Jul 2011 18:42:00 +0000 (11:42 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 12 Jul 2011 21:40:52 +0000 (14:40 -0700)
The 965 driver already had the X8_Z24 case, but 915 was missing it.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i915/i915_texstate.c

index 90ebee3846dd506b4550887aaf2d503f109d9f65..7cd6820cd51cac60c7449dcfdaaac2c8c4529b9c 100644 (file)
@@ -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)