[Mesa-dev] [PATCH 09/12] mesa: add AllocTextureImageBuffer() driver hook

Brian Paul brian.e.paul at gmail.com
Sat Sep 10 10:55:14 PDT 2011


From: Brian Paul <brianp at vmware.com>

---
 src/mesa/main/dd.h |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)

diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
index 8b62399..93ed80a 100644
--- a/src/mesa/main/dd.h
+++ b/src/mesa/main/dd.h
@@ -480,6 +480,12 @@ struct dd_function_table {
    void (*DeleteTextureImage)(struct gl_context *ctx,
                               struct gl_texture_image *);
 
+   /** Called to allocate memory for a single texture image */
+   GLboolean (*AllocTextureImageBuffer)(struct gl_context *ctx,
+                                        struct gl_texture_image *texImage,
+                                        gl_format format, GLsizei width,
+                                        GLsizei height, GLsizei depth);
+
    /** 
     * Called to free tImage->Data.
     */
-- 
1.7.3.4



More information about the mesa-dev mailing list