summaryrefslogtreecommitdiffstats
path: root/src/mesa/main
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2011-10-31 10:52:56 -0600
committerBrian Paul <[email protected]>2011-10-31 10:52:56 -0600
commit2e322bb8d18502833f8734f5ecc6770cbc4c93f0 (patch)
tree529729ef320372e43a995ca4f60901abd4e35ac0 /src/mesa/main
parentb296315881e4da60798e546f24c727a49deb9a89 (diff)
mesa: add new driver hook for AllocTextureStorage()
Diffstat (limited to 'src/mesa/main')
-rw-r--r--src/mesa/main/dd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
index 8607008dee6..86a547da32e 100644
--- a/src/mesa/main/dd.h
+++ b/src/mesa/main/dd.h
@@ -514,6 +514,15 @@ struct dd_function_table {
/** Unmap texture images from user space */
void (*UnmapTexture)( struct gl_context *ctx, struct gl_texture_object *tObj );
+ /** For GL_ARB_texture_storage. Allocate memory for whole mipmap stack.
+ * All the gl_texture_images in the texture object will have their
+ * dimensions, format, etc. initialized already.
+ */
+ GLboolean (*AllocTextureStorage)(struct gl_context *ctx,
+ struct gl_texture_object *texObj,
+ GLsizei levels, GLsizei width,
+ GLsizei height, GLsizei depth);
+
/**
* Note: no context argument. This function doesn't initially look
* like it belongs here, except that the driver is the only entity