diff options
author | Chad Versace <[email protected]> | 2011-11-15 18:21:12 -0800 |
---|---|---|
committer | Chad Versace <[email protected]> | 2011-11-22 10:50:51 -0800 |
commit | d2e35a5460c5c4b3951c0aaca4fdb867b20478bb (patch) | |
tree | 7aff21194b2aec71ea4f8a5d7913222164918722 /src | |
parent | 3d760664e6349c72624aa6d54d40df0233995c8e (diff) |
intel: Resolve buffers in intel_map_texture_image()
Reviewed-by: Eric Anholt <[email protected]>
Signed-off-by: Chad Versace <[email protected]>
Diffstat (limited to 'src')
-rw-r--r-- | 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 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. |