Mesa (master): i965: Add support for Z16 depth formats.

Eric Anholt anholt at kemper.freedesktop.org
Wed Jan 18 18:38:00 UTC 2012


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

Author: Eric Anholt <eric at anholt.net>
Date:   Thu Nov 17 17:11:00 2011 -0800

i965: Add support for Z16 depth formats.

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 at whitecape.org>
Reviewed-by: Chad Versace <chad.versace at linux.intel.com>

---

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

diff --git a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
index 159509b..ef270e7 100644
--- a/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
+++ b/src/mesa/drivers/dri/i965/brw_wm_surface_state.c
@@ -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




More information about the mesa-commit mailing list