[Mesa-dev] [PATCH 34/41] intel: Resolve buffers in intel_map_renderbuffer()
Chad Versace
chad.versace at linux.intel.com
Thu Nov 17 19:59:01 PST 2011
Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
---
src/mesa/drivers/dri/intel/intel_fbo.c | 5 +++++
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 5b2a7ac..0b6b227 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;
--
1.7.7.1
More information about the mesa-dev
mailing list