intel: Resolve buffers in intel_map_renderbuffer()
authorChad Versace <chad.versace@linux.intel.com>
Wed, 16 Nov 2011 02:25:39 +0000 (18:25 -0800)
committerChad Versace <chad.versace@linux.intel.com>
Tue, 22 Nov 2011 18:50:51 +0000 (10:50 -0800)
Reviewed-by: Eric Anholt <eric@anholt.net>
Signed-off-by: Chad Versace <chad.versace@linux.intel.com>
src/mesa/drivers/dri/intel/intel_fbo.c

index 13486f7de83bea449790d5d9dbb890ad13a29eaf..4930999cdb2a1f0cff1aea6d773f4a3ddf9c8aa6 100644 (file)
@@ -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;