i965: Don't bother with HiZ in renderbuffer_move_to_temp
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 16 Jun 2017 04:18:31 +0000 (21:18 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Fri, 23 Jun 2017 19:30:24 +0000 (12:30 -0700)
This function is only used on gen4-5 which don't support HiZ.

Reviewed-by: Chad Versace <chadversary@chromium.org>
src/mesa/drivers/dri/i965/intel_fbo.c

index f84cea132259789b858f4f1473605d515625a761..4bf2934033a4df08fd518f17739700d6501dc444 100644 (file)
@@ -989,10 +989,6 @@ intel_renderbuffer_move_to_temp(struct brw_context *brw,
                                  irb->mt->num_samples,
                                  layout_flags);
 
-   if (intel_miptree_wants_hiz_buffer(brw, new_mt)) {
-      intel_miptree_alloc_hiz(brw, new_mt);
-   }
-
    if (!invalidate)
       intel_miptree_copy_slice(brw, intel_image->mt,
                                intel_image->base.Base.Level, irb->mt_layer,