i965: Add support for ARB_copy_image
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 27 Jun 2014 23:05:37 +0000 (16:05 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 11 Aug 2014 18:26:14 +0000 (11:26 -0700)
commit410fea8dd9cc0b1b500477a8b6f68c950f7c895a
treec7ca3014f76a1dea130174a3048d2fdab1461765
parent8ad7c1903d0f77d3b76e5431f3164323ac48adea
i965: Add support for ARB_copy_image

This, together with the meta path, provides a complete implemetation of
ARB_copy_image.

v2: Add a fallback memcpy path for when the texture is too big for the
    blitter
v3: Properly support copying between two places on the same texture in the
    memcpy fallback
v4: Properly handle blit between the same two images in the fallback path
v5: Properly handle blit between the same two compressed images in the
    fallback path
v6: Fix a typo in a comment

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Neil Roberts <neil@linux.intel.com>
src/mesa/drivers/dri/i965/Makefile.sources
src/mesa/drivers/dri/i965/brw_context.c
src/mesa/drivers/dri/i965/intel_copy_image.c [new file with mode: 0644]
src/mesa/drivers/dri/i965/intel_extensions.c
src/mesa/drivers/dri/i965/intel_tex.h