From b264698d30d3c789bbe1fc64fd72c731f342877a Mon Sep 17 00:00:00 2001 From: Chad Versace Date: Tue, 15 Nov 2011 18:25:39 -0800 Subject: [PATCH] intel: Resolve buffers in intel_map_renderbuffer() Reviewed-by: Eric Anholt Signed-off-by: Chad Versace --- src/mesa/drivers/dri/intel/intel_fbo.c | 5 +++++ 1 file changed, 5 insertions(+) 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; -- 2.30.2