summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/texstore.h
diff options
context:
space:
mode:
authorNeil Roberts <neil@linux.intel.com>2014-06-10 16:19:58 +0100
committerNeil Roberts <neil@linux.intel.com>2014-07-23 11:50:38 +0100
commitdf9945ca26203b5f39d273cbaa1966650f8190a9 (patch)
tree55fe69e06e11da9260a97150fd6596a6d3ab1bee /src/mesa/main/texstore.h
parentfbbbf7529c3d99a0b2f569495033283877df8b60 (diff)
downloadexternal_mesa3d-df9945ca26203b5f39d273cbaa1966650f8190a9.zip
external_mesa3d-df9945ca26203b5f39d273cbaa1966650f8190a9.tar.gz
external_mesa3d-df9945ca26203b5f39d273cbaa1966650f8190a9.tar.bz2
texstore: Add a generic implementation of GL_ARB_clear_texture
Adds an implmentation of the ClearTexSubImage driver entry point that just maps the texture and writes the values in. The extension is not yet enabled by default because it doesn't work with multisample textures as they don't have a simple linear layout. Reviewed-by: Jason Ekstrand <jason.ekstrand@intel.com>
Diffstat (limited to 'src/mesa/main/texstore.h')
-rw-r--r--src/mesa/main/texstore.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/mesa/main/texstore.h b/src/mesa/main/texstore.h
index c4cfffd..dd1e1d0 100644
--- a/src/mesa/main/texstore.h
+++ b/src/mesa/main/texstore.h
@@ -118,6 +118,13 @@ _mesa_store_texsubimage(struct gl_context *ctx, GLuint dims,
extern void
+_mesa_store_cleartexsubimage(struct gl_context *ctx,
+ struct gl_texture_image *texImage,
+ GLint xoffset, GLint yoffset, GLint zoffset,
+ GLsizei width, GLsizei height, GLsizei depth,
+ const GLvoid *clearValue);
+
+extern void
_mesa_store_compressed_teximage(struct gl_context *ctx, GLuint dims,
struct gl_texture_image *texImage,
GLsizei imageSize, const GLvoid *data);