diff options
author | Samuel Pitoiset <[email protected]> | 2017-06-14 11:27:41 +0200 |
---|---|---|
committer | Samuel Pitoiset <[email protected]> | 2017-06-18 14:20:59 +0200 |
commit | 0fb2c89c717214df5e99c7f1bd493c9ec89cada9 (patch) | |
tree | 300dbe9ca4a043b829306d654d4b9da5e59d414a /src/mesa/main/texturebindless.c | |
parent | d7bee4a022ffacb2043cd6e498a742f719a8a59d (diff) |
mesa: add KHR_no_error support for glMake{Image,Texture}Handle*ResidentARB()
Signed-off-by: Samuel Pitoiset <[email protected]>
Reviewed-by: Timothy Arceri <[email protected]>
Diffstat (limited to 'src/mesa/main/texturebindless.c')
-rw-r--r-- | src/mesa/main/texturebindless.c | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/src/mesa/main/texturebindless.c b/src/mesa/main/texturebindless.c index dac6c569a5e..5c606e9f4b4 100644 --- a/src/mesa/main/texturebindless.c +++ b/src/mesa/main/texturebindless.c @@ -649,6 +649,17 @@ _mesa_GetTextureSamplerHandleARB(GLuint texture, GLuint sampler) } void GLAPIENTRY +_mesa_MakeTextureHandleResidentARB_no_error(GLuint64 handle) +{ + struct gl_texture_handle_object *texHandleObj; + + GET_CURRENT_CONTEXT(ctx); + + texHandleObj = lookup_texture_handle(ctx, handle); + make_texture_handle_resident(ctx, texHandleObj, true); +} + +void GLAPIENTRY _mesa_MakeTextureHandleResidentARB(GLuint64 handle) { struct gl_texture_handle_object *texHandleObj; @@ -684,6 +695,17 @@ _mesa_MakeTextureHandleResidentARB(GLuint64 handle) } void GLAPIENTRY +_mesa_MakeTextureHandleNonResidentARB_no_error(GLuint64 handle) +{ + struct gl_texture_handle_object *texHandleObj; + + GET_CURRENT_CONTEXT(ctx); + + texHandleObj = lookup_texture_handle(ctx, handle); + make_texture_handle_resident(ctx, texHandleObj, false); +} + +void GLAPIENTRY _mesa_MakeTextureHandleNonResidentARB(GLuint64 handle) { struct gl_texture_handle_object *texHandleObj; @@ -790,6 +812,17 @@ _mesa_GetImageHandleARB(GLuint texture, GLint level, GLboolean layered, } void GLAPIENTRY +_mesa_MakeImageHandleResidentARB_no_error(GLuint64 handle, GLenum access) +{ + struct gl_image_handle_object *imgHandleObj; + + GET_CURRENT_CONTEXT(ctx); + + imgHandleObj = lookup_image_handle(ctx, handle); + make_image_handle_resident(ctx, imgHandleObj, access, true); +} + +void GLAPIENTRY _mesa_MakeImageHandleResidentARB(GLuint64 handle, GLenum access) { struct gl_image_handle_object *imgHandleObj; @@ -834,6 +867,17 @@ _mesa_MakeImageHandleResidentARB(GLuint64 handle, GLenum access) } void GLAPIENTRY +_mesa_MakeImageHandleNonResidentARB_no_error(GLuint64 handle) +{ + struct gl_image_handle_object *imgHandleObj; + + GET_CURRENT_CONTEXT(ctx); + + imgHandleObj = lookup_image_handle(ctx, handle); + make_image_handle_resident(ctx, imgHandleObj, GL_READ_ONLY, false); +} + +void GLAPIENTRY _mesa_MakeImageHandleNonResidentARB(GLuint64 handle) { struct gl_image_handle_object *imgHandleObj; |