Mesa (master): mesa: add KHR_no_error support for glIs{Image, Texture}HandleResidentARB()

Samuel Pitoiset hakzsam at kemper.freedesktop.org
Sun Jun 18 12:25:41 UTC 2017


Module: Mesa
Branch: master
Commit: d7bee4a022ffacb2043cd6e498a742f719a8a59d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=d7bee4a022ffacb2043cd6e498a742f719a8a59d

Author: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Date:   Wed Jun 14 11:27:40 2017 +0200

mesa: add KHR_no_error support for glIs{Image,Texture}HandleResidentARB()

Signed-off-by: Samuel Pitoiset <samuel.pitoiset at gmail.com>
Reviewed-by: Timothy Arceri <tarceri at itsqueeze.com>

---

 src/mapi/glapi/gen/ARB_bindless_texture.xml |  4 ++--
 src/mesa/main/texturebindless.c             | 14 ++++++++++++++
 src/mesa/main/texturebindless.h             |  7 +++++++
 3 files changed, 23 insertions(+), 2 deletions(-)

diff --git a/src/mapi/glapi/gen/ARB_bindless_texture.xml b/src/mapi/glapi/gen/ARB_bindless_texture.xml
index e57f897a93..916e198a1e 100644
--- a/src/mapi/glapi/gen/ARB_bindless_texture.xml
+++ b/src/mapi/glapi/gen/ARB_bindless_texture.xml
@@ -69,12 +69,12 @@
       <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>
diff --git a/src/mesa/main/texturebindless.c b/src/mesa/main/texturebindless.c
index 26b0f58bcd..dac6c569a5 100644
--- a/src/mesa/main/texturebindless.c
+++ b/src/mesa/main/texturebindless.c
@@ -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);
diff --git a/src/mesa/main/texturebindless.h b/src/mesa/main/texturebindless.h
index d584f5cc0c..0fcea61d43 100644
--- a/src/mesa/main/texturebindless.h
+++ b/src/mesa/main/texturebindless.h
@@ -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);
 




More information about the mesa-commit mailing list