i965: use mt->offset in intel_miptree_map_movntdqa()
authorHaixia Shi <hshi@chromium.org>
Wed, 3 Aug 2016 00:03:32 +0000 (17:03 -0700)
committerChad Versace <chad@kiwitree.net>
Wed, 3 Aug 2016 15:28:52 +0000 (08:28 -0700)
commit4c4bfed6709c7c35de4b2268ca2e73ed75c30f50
tree9236f4b866405424381bcd239ff988a4b5bd8ffc
parent6fb6201f7184f53a8830a2902c9c3327b0acb24c
i965: use mt->offset in intel_miptree_map_movntdqa()

We need to include mt->offset in the calculation of src pointer because its
value may be non-zero, for example in a cubemap texture.

Signed-off-by: Haixia Shi <hshi@chromium.org>
Cc: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Chad Versace <chad@kiwitree.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Change-Id: I461ad5b204626d5a1c45611fc6b63735dcf29f63
src/mesa/drivers/dri/i965/intel_mipmap_tree.c