intel: Replace checks for hiz_mt with intel_has*hiz()
[mesa.git] / src / mesa / drivers / dri / i965 / brw_clear.c
index e740f655f16f629752cce5b1bc3e2eaf6abaed1f..c0ac69d15370c612cfb38efea2d666c14d23a7df 100644 (file)
@@ -114,7 +114,7 @@ brw_fast_clear_depth(struct gl_context *ctx)
    if (intel->gen < 6)
       return false;
 
-   if (!mt->hiz_mt)
+   if (!intel_renderbuffer_has_hiz(depth_irb))
       return false;
 
    /* We only handle full buffer clears -- otherwise you'd have to track whether