From: Chad Versace Date: Wed, 16 Nov 2011 02:21:12 +0000 (-0800) Subject: intel: Resolve buffers in intel_map_texture_image() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d2e35a5460c5c4b3951c0aaca4fdb867b20478bb;p=mesa.git intel: Resolve buffers in intel_map_texture_image() Reviewed-by: Eric Anholt Signed-off-by: Chad Versace --- diff --git a/src/mesa/drivers/dri/intel/intel_tex.c b/src/mesa/drivers/dri/intel/intel_tex.c index 505e617d709..9884a57d0fe 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.