diff options
author | Andres Rodriguez <andresx7@gmail.com> | 2017-07-12 18:45:18 -0400 |
---|---|---|
committer | Timothy Arceri <tarceri@itsqueeze.com> | 2017-08-06 12:42:06 +1000 |
commit | bbc9c2e4f88ac184ff53cfd9ddc149fbd6c68355 (patch) | |
tree | 42bbada64eb1ab1bbcc4db2b5e02ea41c9252b4c /src/mesa/main/dd.h | |
parent | 2bdb0da0300f51af9f093e3f6c53a0813bc8b865 (diff) |
mesa/st: implement memory objects as a backend for buffer objects
Use a memory object instead of user memory.
Signed-off-by: Andres Rodriguez <andresx7@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Diffstat (limited to 'src/mesa/main/dd.h')
-rw-r--r-- | src/mesa/main/dd.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index fbe70cdfab7..a1c9e8e793d 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@ -1097,6 +1097,18 @@ struct dd_function_table { GLsizei levels, GLsizei width, GLsizei height, GLsizei depth, GLuint64 offset); + + /** + * Use a memory object as the backing data for a buffer object + */ + GLboolean (*BufferDataMem)(struct gl_context *ctx, + GLenum target, + GLsizeiptrARB size, + struct gl_memory_object *memObj, + GLuint64 offset, + GLenum usage, + struct gl_buffer_object *bufObj); + /*@}*/ /** |