From 41b6460e08bf878ec3372937f63bef2a7b63c484 Mon Sep 17 00:00:00 2001 From: Jason Ekstrand Date: Fri, 27 Jun 2014 15:34:53 -0700 Subject: mesa: Add GL API support for ARB_copy_image This adds the API entrypoint, error checking logic, and a driver hook for the ARB_copy_image extension. v2: Fix a typo in ARB_copy_image.xml and add it to the makefile v3: Put ARB_copy_image.xml in the right place alphebetically in the makefile and properly prefix the commit message v4: Fixed some line wrapping and added a check for null v5: Check for incomplete renderbuffers Signed-off-by: Jason Ekstrand Reviewed-by: Juha-Pekka Heikkila Reviewed-by: Neil Roberts v6: Update dispatch_sanity for the addition of CopyImageSubData --- src/mesa/main/dd.h | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/mesa/main/dd.h') diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index 89765351e14..c130b14a522 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@ -268,6 +268,22 @@ struct dd_function_table { GLint x, GLint y, GLsizei width, GLsizei height); + /** + * Called by glCopyImageSubData(). + * + * This function should copy one 2-D slice from srcTexImage to + * dstTexImage. If one of the textures is 3-D or is a 1-D or 2-D array + * texture, this function will be called multiple times: once for each + * slice. If one of the textures is a cube map, this function will be + * called once for each face to be copied. + */ + void (*CopyImageSubData)(struct gl_context *ctx, + struct gl_texture_image *src_image, + int src_x, int src_y, int src_z, + struct gl_texture_image *dstTexImage, + int dst_x, int dst_y, int dst_z, + int src_width, int src_height); + /** * Called by glGenerateMipmap() or when GL_GENERATE_MIPMAP_SGIS is enabled. * Note that if the texture is a cube map, the parameter will -- cgit v1.2.3