Mesa (master): i965: Start using HIZ for Z16 textures.

Eric Anholt anholt at kemper.freedesktop.org
Wed Dec 26 20:32:23 UTC 2012


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

Author: Eric Anholt <eric at anholt.net>
Date:   Tue Dec 18 16:05:24 2012 -0800

i965: Start using HIZ for Z16 textures.

I had left this out for a long time because it regressed some
depthstencil-render-miplevels cases when it was enabled.  Now that the
bugs causing those are fixed, there's nothing stopping us.

Improves glbenchmark 2.1 offscreen performance by 7.3% +/- 2.8% (n=10).

Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

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

diff --git a/src/mesa/drivers/dri/i965/brw_vtbl.c b/src/mesa/drivers/dri/i965/brw_vtbl.c
index 237ec1e..cb25be9 100644
--- a/src/mesa/drivers/dri/i965/brw_vtbl.c
+++ b/src/mesa/drivers/dri/i965/brw_vtbl.c
@@ -239,6 +239,7 @@ static bool brw_is_hiz_depth_format(struct intel_context *intel,
    case MESA_FORMAT_Z32_FLOAT_X24S8:
    case MESA_FORMAT_X8_Z24:
    case MESA_FORMAT_S8_Z24:
+   case MESA_FORMAT_Z16:
       return true;
    default:
       return false;




More information about the mesa-commit mailing list