summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/teximage.h
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2014-06-10 16:11:00 +0100
committerNeil Roberts <neil@linux.intel.com>2014-07-23 11:50:38 +0100
commitfbbbf7529c3d99a0b2f569495033283877df8b60 (patch)
tree2fd3f756cacaf2c72466cc2263f59948246e8936 /src/mesa/main/teximage.h
parent2e63f91e60376d297d883fd769713fbb5c93aadc (diff)
downloadexternal_mesa3d-fbbbf7529c3d99a0b2f569495033283877df8b60.zip
external_mesa3d-fbbbf7529c3d99a0b2f569495033283877df8b60.tar.gz
external_mesa3d-fbbbf7529c3d99a0b2f569495033283877df8b60.tar.bz2
mesa/main: Add generic bits of ARB_clear_texture implementation
This adds the driver entry point for glClearTexSubImage and fills in the _mesa_ClearTexImage and _mesa_ClearTexSubImage functions that call it. v2: Don't clear some of the images if only one of them makes an error Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Diffstat (limited to 'src/mesa/main/teximage.h')
-rw-r--r--src/mesa/main/teximage.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/main/teximage.h b/src/mesa/main/teximage.h
index 42305f4..984321c 100644
--- a/src/mesa/main/teximage.h
+++ b/src/mesa/main/teximage.h
@@ -336,6 +336,18 @@ _mesa_TexStorage3DMultisample(GLenum target, GLsizei samples,
GLsizei height, GLsizei depth,
GLboolean fixedsamplelocations);
+extern void GLAPIENTRY
+_mesa_ClearTexImage(GLuint texture, GLint level,
+ GLenum format, GLenum type,
+ const void *data);
+
+extern void GLAPIENTRY
+_mesa_ClearTexSubImage(GLuint texture, GLint level,
+ GLint xoffset, GLint yoffset, GLint zoffset,
+ GLsizei width, GLsizei height, GLsizei depth,
+ GLenum format, GLenum type,
+ const void *data);
+
bool
_mesa_compressed_texture_pixel_storage_error_check(struct gl_context *ctx,
GLint dimensions,