return false;
}
+ /* The blitter has no idea about HiZ, so we need to get the real depth
+ * data into the two miptrees before we do anything.
+ */
+ intel_miptree_slice_resolve_depth(intel, src_mt, src_level, src_slice);
+ intel_miptree_slice_resolve_depth(intel, dst_mt, dst_level, dst_slice);
+
if (src_flip)
src_y = src_mt->level[src_level].height - src_y - height;
dst_mt, dst_x, dst_y, dst_mt->region->pitch,
width, height);
- /* Since we are about to copy depth data using either the blitter or swrast
- * (neither of which respect HiZ), we need to do a depth resolve first.
- */
- intel_miptree_slice_resolve_depth(intel, src_mt, level, slice);
- intel_miptree_slice_resolve_depth(intel, dst_mt, level, slice);
-
if (!intel_miptree_blit(intel,
src_mt, level, slice, 0, 0, false,
dst_mt, level, slice, 0, 0, false,