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 e57f897..916e198 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 26b0f58..dac6c56 100644 (file)
@@ -870,6 +870,13 @@ _mesa_MakeImageHandleNonResidentARB(GLuint64 handle)
 }
 
 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)
 {
    GET_CURRENT_CONTEXT(ctx);
@@ -896,6 +903,13 @@ _mesa_IsTextureHandleResidentARB(GLuint64 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)
 {
    GET_CURRENT_CONTEXT(ctx);
index d584f5c..0fcea61 100644 (file)
@@ -87,7 +87,14 @@ 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);