mesa: Add a driver hook for mapping renderbuffers.
authorEric Anholt <eric@anholt.net>
Tue, 11 Oct 2011 21:12:50 +0000 (14:12 -0700)
committerEric Anholt <eric@anholt.net>
Tue, 1 Nov 2011 22:42:17 +0000 (15:42 -0700)
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/main/dd.h

index 86a547d..9842540 100644 (file)
@@ -523,6 +523,15 @@ struct dd_function_table {
                                     GLsizei levels, GLsizei width,
                                     GLsizei height, GLsizei depth);
 
+   void (*MapRenderbuffer)(struct gl_context *ctx,
+                          struct gl_renderbuffer *rb,
+                          GLuint x, GLuint y, GLuint w, GLuint h,
+                          GLbitfield mode,
+                          GLubyte **mapOut, GLint *rowStrideOut);
+
+   void (*UnmapRenderbuffer)(struct gl_context *ctx,
+                            struct gl_renderbuffer *rb);
+
    /**
     * Note: no context argument.  This function doesn't initially look
     * like it belongs here, except that the driver is the only entity