i965: Start using HIZ for Z16 textures.
authorEric Anholt <eric@anholt.net>
Wed, 19 Dec 2012 00:05:24 +0000 (16:05 -0800)
committerEric Anholt <eric@anholt.net>
Wed, 26 Dec 2012 20:03:04 +0000 (12:03 -0800)
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@whitecape.org>
src/mesa/drivers/dri/i965/brw_vtbl.c

index 237ec1ef78a081af4b03313bdf13626030d38528..cb25be9735b63bfc165d9ee9c74af59eb5646267 100644 (file)
@@ -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;