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

Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
Samuel Pitoiset 2017-06-14 11:27:40 +02:00
parent 6ff6863c32
commit d7bee4a022
3 changed files with 23 additions and 2 deletions

View File

@ -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>

View 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)
{

View 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);