anv/copy: Account for the anv_surface.offset when creating a blit2d_surf
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 2 Jun 2016 23:25:44 +0000 (16:25 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 4 Jun 2016 02:29:28 +0000 (19:29 -0700)
commit9313a568169bddabaac675361497efff4a0709d6
tree245e3caba3ad6f7feeec8b606a8590c8315fb181
parent526a8de22d85bcdc3a46b2e16e0073527616d95d
anv/copy: Account for the anv_surface.offset when creating a blit2d_surf

This was causing problems if the user tried to copy to/from the stencil
portion of a combined depth/stencil image.

Signed-off-by: Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Nanley Chery <nanley.g.chery@intel.com>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_meta_copy.c