intel: Account for mt->offset in intel_miptree_map
authorAbdiel Janulgue <abdiel.janulgue@linux.intel.com>
Fri, 25 Jan 2013 13:37:00 +0000 (15:37 +0200)
committerChad Versace <chad.versace@linux.intel.com>
Fri, 1 Feb 2013 19:58:12 +0000 (11:58 -0800)
commit8e2454c562ce9e6d06ba5e39c8e03097d3590c0e
tree49f2f8daae960ba72b95fb0e7779308485925e7e
parent11f5c82e8383fff00edd943209100cc1c9a1424b
intel: Account for mt->offset in intel_miptree_map

We need to take account the offset from original bo when using glTexSubImage()
and other functions that manipulate the subregion of an exported texture.
Offsets are appended to mapped region address and when blitting from a source
region.

Reviewed-by: Eric Anholt <eric@anholt.net>
Reviewed-by: Chad Versace <chad.versace@linux.intel.com>
Signed-off-by: Abdiel Janulgue <abdiel.janulgue@linux.intel.com>
src/mesa/drivers/dri/intel/intel_mipmap_tree.c