From 5097fcbfdc8dc5aab779af92022f9b5ff16026f0 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 26 May 2017 09:33:55 -0700 Subject: [PATCH] i965: Mark depth surfaces as needing a HiZ resolve after blitting Cc: "17.0 17.1" Reviewed-by: Topi Pohjolainen Reviewed-by: Kenneth Graunke Reviewed-by: Chad Versace --- src/mesa/drivers/dri/i965/intel_blit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mesa/drivers/dri/i965/intel_blit.c b/src/mesa/drivers/dri/i965/intel_blit.c index 61764fbe965..817fe7ac56b 100644 --- a/src/mesa/drivers/dri/i965/intel_blit.c +++ b/src/mesa/drivers/dri/i965/intel_blit.c @@ -328,6 +328,7 @@ intel_miptree_blit(struct brw_context *brw, intel_miptree_slice_resolve_depth(brw, dst_mt, dst_level, dst_slice); intel_miptree_resolve_color(brw, src_mt, src_level, src_slice, 1, 0); intel_miptree_resolve_color(brw, dst_mt, dst_level, dst_slice, 1, 0); + intel_miptree_slice_set_needs_hiz_resolve(dst_mt, dst_level, dst_slice); if (src_flip) src_y = minify(src_mt->physical_height0, src_level - src_mt->first_level) - src_y - height; @@ -386,6 +387,7 @@ intel_miptree_copy(struct brw_context *brw, intel_miptree_slice_resolve_depth(brw, dst_mt, dst_level, dst_slice); intel_miptree_resolve_color(brw, src_mt, src_level, src_slice, 1, 0); intel_miptree_resolve_color(brw, dst_mt, dst_level, dst_slice, 1, 0); + intel_miptree_slice_set_needs_hiz_resolve(dst_mt, dst_level, dst_slice); uint32_t src_image_x, src_image_y; intel_miptree_get_image_offset(src_mt, src_level, src_slice, -- 2.30.2