mesa/meta: Add a partial implementation of CopyImageSubData
authorJason Ekstrand <jason.ekstrand@intel.com>
Fri, 25 Jul 2014 21:08:59 +0000 (14:08 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Mon, 11 Aug 2014 18:26:00 +0000 (11:26 -0700)
commit8ad7c1903d0f77d3b76e5431f3164323ac48adea
tree7ff56c3e74331144f7379727351b20f058d7ee6a
parent80a8b020c02356ec59b0948b87bce9e97d1e14bd
mesa/meta: Add a partial implementation of CopyImageSubData

This provides an implementation of CopyImageSubData that works if both
textures are uncompressed.  This implementation works by using a
combination of texture views and BlitFramebuffer.  If one of the textures
is compressed, it returns false and the driver is expected to provide a
fallback.

v2: Don't leak fbo's

Signed-off-by: Jason Ekstrand <jason.ekstrand@intel.com>
Reviewed-by: Juha-Pekka Heikkila <juhapekka.heikkila@gmail.com>
Reviewed-by: Neil Roberts <neil@linux.intel.com>
v3: Change glGen/DeleteTextures to _mesa_Gen/DeleteTextures
src/mesa/Makefile.sources
src/mesa/drivers/common/meta.h
src/mesa/drivers/common/meta_copy_image.c [new file with mode: 0644]