[Mesa-dev] [PATCH 33/41] intel: Resolve buffers in intel_map_texture_image()
Chad Versace
chad.versace at linux.intel.com
Thu Nov 17 19:59:00 PST 2011
Signed-off-by: Chad Versace <chad.versace at linux.intel.com>
---
src/mesa/drivers/dri/intel/intel_tex.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/src/mesa/drivers/dri/intel/intel_tex.c b/src/mesa/drivers/dri/intel/intel_tex.c
index 505e617..9884a57 100644
--- a/src/mesa/drivers/dri/intel/intel_tex.c
+++ b/src/mesa/drivers/dri/intel/intel_tex.c
@@ -171,6 +171,11 @@ intel_map_texture_image(struct gl_context *ctx,
intel_miptree_s8z24_gather(intel, mt, tex_image->Level, slice);
}
+ intel_miptree_slice_resolve_depth(intel, mt, tex_image->Level, slice);
+ if (mode & GL_MAP_WRITE_BIT) {
+ intel_miptree_slice_set_needs_hiz_resolve(mt, tex_image->Level, slice);
+ }
+
/* For compressed formats, the stride is the number of bytes per
* row of blocks. intel_miptree_get_image_offset() already does
* the divide.
--
1.7.7.1
More information about the mesa-dev
mailing list