summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/mesa/drivers/dri/intel/intel_fbo.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mesa/drivers/dri/intel/intel_fbo.c b/src/mesa/drivers/dri/intel/intel_fbo.c
index 13486f7de83..4930999cdb2 100644
--- a/src/mesa/drivers/dri/intel/intel_fbo.c
+++ b/src/mesa/drivers/dri/intel/intel_fbo.c
@@ -125,6 +125,11 @@ intel_map_renderbuffer_gtt(struct gl_context *ctx,
assert(irb->mt);
+ intel_renderbuffer_resolve_depth(intel, irb);
+ if (mode & GL_MAP_WRITE_BIT) {
+ intel_renderbuffer_set_needs_hiz_resolve(irb);
+ }
+
irb->map_mode = mode;
irb->map_x = x;
irb->map_y = y;