i965: Also fix validation of Z32F_S8 textures.
authorEric Anholt <eric@anholt.net>
Tue, 18 Dec 2012 21:10:29 +0000 (13:10 -0800)
committerEric Anholt <eric@anholt.net>
Sat, 22 Dec 2012 21:46:04 +0000 (13:46 -0800)
This was caught by the assertion in the next commit.  It fixes the
remaining piglit depthstencil-render-miplevels cases, probably by
avoiding broken stencil copies in the validation path.

Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
src/mesa/drivers/dri/intel/intel_mipmap_tree.c

index 901d0ea2910adffb902dcd05336ada08558209b2..580d0215d49092091169f592a1b2b892e45b28d6 100644 (file)
@@ -607,6 +607,8 @@ intel_miptree_match_image(struct intel_mipmap_tree *mt,
    gl_format mt_format = mt->format;
    if (mt->format == MESA_FORMAT_X8_Z24 && mt->stencil_mt)
       mt_format = MESA_FORMAT_S8_Z24;
+   if (mt->format == MESA_FORMAT_Z32_FLOAT && mt->stencil_mt)
+      mt_format = MESA_FORMAT_Z32_FLOAT_X24S8;
    if (mt->etc_format != MESA_FORMAT_NONE)
       mt_format = mt->etc_format;