i965: Add support for Z16 depth formats.
authorEric Anholt <eric@anholt.net>
Fri, 18 Nov 2011 01:11:00 +0000 (17:11 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 18 Jan 2012 18:25:36 +0000 (10:25 -0800)
v2: Don't flag the format as being HiZ ready (there's DRI2 handshake
    pain to go through).

Fixes piglit gl-3.0-required-sized-texture-formats

NOTE: This is a candidate for the 8.0 branch.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/i965/brw_wm_surface_state.c

index 159509be82f481b8701329723135b9d012f8001c..ef270e78b25fd3209351b9a398827babbabed046 100644 (file)
@@ -553,6 +553,7 @@ brw_init_surface_formats(struct brw_context *brw)
    ctx->TextureFormatSupported[MESA_FORMAT_X8_Z24] = true;
    ctx->TextureFormatSupported[MESA_FORMAT_Z32_FLOAT] = true;
    ctx->TextureFormatSupported[MESA_FORMAT_Z32_FLOAT_X24S8] = true;
+   ctx->TextureFormatSupported[MESA_FORMAT_Z16] = true;
 }
 
 bool