anv/blit: Use CLAMP_TO_EDGE for scaled blits
authorJason Ekstrand <jason.ekstrand@intel.com>
Thu, 2 Jun 2016 23:34:11 +0000 (16:34 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Sat, 4 Jun 2016 02:29:28 +0000 (19:29 -0700)
commit441194edd91c2ca9d2b219f7e16ba2c7783396df
treec0a34475a36387dbf79d8145d937b3cc9ca02006
parent9313a568169bddabaac675361497efff4a0709d6
anv/blit: Use CLAMP_TO_EDGE for scaled blits

When upscaling you can end up interpolating between the edge pixel and one
past the edge.  Using CLAMP_TO_EDGE seems like the most reasonable thing to
do in this case.  This fixes two of the new Vulkan CTS tests in
dEQP-VK.api.copy_and_blit.blit_image.*

Jason Ekstrand <jason@jlekstrand.net>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
src/intel/vulkan/anv_meta_blit.c