From: Chad Versace Date: Wed, 16 Nov 2011 02:25:39 +0000 (-0800) Subject: intel: Resolve buffers in intel_map_renderbuffer() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b264698d30d3c789bbe1fc64fd72c731f342877a;p=mesa.git intel: Resolve buffers in intel_map_renderbuffer() Reviewed-by: Eric Anholt Signed-off-by: Chad Versace --- 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;