diff options
author | Andres Rodriguez <[email protected]> | 2017-07-12 18:45:11 -0400 |
---|---|---|
committer | Timothy Arceri <[email protected]> | 2017-08-06 12:42:06 +1000 |
commit | fc790c50ccb060cf8d07a5be59d8b3868a627784 (patch) | |
tree | a2f660e23a932a94cd9e68985e4c08878b7a4544 /src/mesa/main/dd.h | |
parent | 49f4ecc67773c082d93708bdf111acc4248678da (diff) |
mesa: hook up memoryobject tex(ture)storage api
V2 (Timothy Arceri):
- formating fixes
V3 (Timothy):
- error check memory == 0 before lookup
Signed-off-by: Andres Rodriguez <[email protected]>
Reviewed-by: Samuel Pitoiset <[email protected]>
Diffstat (limited to 'src/mesa/main/dd.h')
-rw-r--r-- | src/mesa/main/dd.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h index 6d6bdecb4dd..fbe70cdfab7 100644 --- a/src/mesa/main/dd.h +++ b/src/mesa/main/dd.h @@ -1087,6 +1087,16 @@ struct dd_function_table { */ void (*DeleteMemoryObject)(struct gl_context *ctx, struct gl_memory_object *memObj); + + /** + * Set the given memory object as the texture's storage. + */ + GLboolean (*SetTextureStorageForMemoryObject)(struct gl_context *ctx, + struct gl_texture_object *tex_obj, + struct gl_memory_object *mem_obj, + GLsizei levels, GLsizei width, + GLsizei height, GLsizei depth, + GLuint64 offset); /*@}*/ /** |