summaryrefslogtreecommitdiffstats
path: root/src/mesa/drivers
diff options
context:
space:
mode:
authorChad Versace <[email protected]>2011-11-15 18:25:39 -0800
committerChad Versace <[email protected]>2011-11-22 10:50:51 -0800
commitb264698d30d3c789bbe1fc64fd72c731f342877a (patch)
treefd771cb7efe6bdc8cfb58a59a1dfe94a82c4a217 /src/mesa/drivers
parentd2e35a5460c5c4b3951c0aaca4fdb867b20478bb (diff)
intel: Resolve buffers in intel_map_renderbuffer()
Reviewed-by: Eric Anholt <[email protected]> Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src/mesa/drivers')
-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;