mesa: add KHR_no_error support for glIs{Image,Texture}HandleResidentARB()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 14 Jun 2017 09:27:40 +0000 (11:27 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Sun, 18 Jun 2017 12:20:57 +0000 (14:20 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/ARB_bindless_texture.xml
src/mesa/main/texturebindless.c
src/mesa/main/texturebindless.h

index e57f897a934ddeac980fd4e01d6be966cc35a9f4..916e198a1eef4013d7d138f388c43997bb3715f8 100644 (file)
       <param name="value" type="const GLuint64 *" />
    </function>
 
-   <function name="IsTextureHandleResidentARB">
+   <function name="IsTextureHandleResidentARB" no_error="true">
       <return type="GLboolean"/>
       <param name="handle" type="GLuint64" />
    </function>
 
-   <function name="IsImageHandleResidentARB">
+   <function name="IsImageHandleResidentARB" no_error="true">
       <return type="GLboolean"/>
       <param name="handle" type="GLuint64" />
    </function>
index 26b0f58bcd2e6020048f2c93e6dc8f49b9412ce6..dac6c569a5eaf632ed6c621555d3249bf4abf768 100644 (file)
@@ -869,6 +869,13 @@ _mesa_MakeImageHandleNonResidentARB(GLuint64 handle)
    make_image_handle_resident(ctx, imgHandleObj, GL_READ_ONLY, false);
 }
 
+GLboolean GLAPIENTRY
+_mesa_IsTextureHandleResidentARB_no_error(GLuint64 handle)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   return is_texture_handle_resident(ctx, handle);
+}
+
 GLboolean GLAPIENTRY
 _mesa_IsTextureHandleResidentARB(GLuint64 handle)
 {
@@ -895,6 +902,13 @@ _mesa_IsTextureHandleResidentARB(GLuint64 handle)
    return is_texture_handle_resident(ctx, handle);
 }
 
+GLboolean GLAPIENTRY
+_mesa_IsImageHandleResidentARB_no_error(GLuint64 handle)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   return is_image_handle_resident(ctx, handle);
+}
+
 GLboolean GLAPIENTRY
 _mesa_IsImageHandleResidentARB(GLuint64 handle)
 {
index d584f5cc0cce81d67aaf11e2ef3e9ea8a796dff5..0fcea61d4328ff87883f8c9c35bf174c9b8aa461 100644 (file)
@@ -86,8 +86,15 @@ _mesa_MakeImageHandleResidentARB(GLuint64 handle, GLenum access);
 void GLAPIENTRY
 _mesa_MakeImageHandleNonResidentARB(GLuint64 handle);
 
+GLboolean GLAPIENTRY
+_mesa_IsTextureHandleResidentARB_no_error(GLuint64 handle);
+
 GLboolean GLAPIENTRY
 _mesa_IsTextureHandleResidentARB(GLuint64 handle);
+
+GLboolean GLAPIENTRY
+_mesa_IsImageHandleResidentARB_no_error(GLuint64 handle);
+
 GLboolean GLAPIENTRY
 _mesa_IsImageHandleResidentARB(GLuint64 handle);