mesa: add KHR_no_error support for glGetImageHandleARB()
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
This commit is contained in:
@@ -27,7 +27,7 @@
|
|||||||
<param name="handle" type="GLuint64" />
|
<param name="handle" type="GLuint64" />
|
||||||
</function>
|
</function>
|
||||||
|
|
||||||
<function name="GetImageHandleARB">
|
<function name="GetImageHandleARB" no_error="true">
|
||||||
<return type="GLuint64"/>
|
<return type="GLuint64"/>
|
||||||
<param name="texture" type="GLuint" />
|
<param name="texture" type="GLuint" />
|
||||||
<param name="level" type="GLint" />
|
<param name="level" type="GLint" />
|
||||||
|
@@ -771,6 +771,21 @@ _mesa_MakeTextureHandleNonResidentARB(GLuint64 handle)
|
|||||||
make_texture_handle_resident(ctx, texHandleObj, false);
|
make_texture_handle_resident(ctx, texHandleObj, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GLuint64 GLAPIENTRY
|
||||||
|
_mesa_GetImageHandleARB_no_error(GLuint texture, GLint level, GLboolean layered,
|
||||||
|
GLint layer, GLenum format)
|
||||||
|
{
|
||||||
|
struct gl_texture_object *texObj;
|
||||||
|
|
||||||
|
GET_CURRENT_CONTEXT(ctx);
|
||||||
|
|
||||||
|
texObj = _mesa_lookup_texture(ctx, texture);
|
||||||
|
if (!_mesa_is_texture_complete(texObj, &texObj->Sampler))
|
||||||
|
_mesa_test_texobj_completeness(ctx, texObj);
|
||||||
|
|
||||||
|
return get_image_handle(ctx, texObj, level, layered, layer, format);
|
||||||
|
}
|
||||||
|
|
||||||
GLuint64 GLAPIENTRY
|
GLuint64 GLAPIENTRY
|
||||||
_mesa_GetImageHandleARB(GLuint texture, GLint level, GLboolean layered,
|
_mesa_GetImageHandleARB(GLuint texture, GLint level, GLboolean layered,
|
||||||
GLint layer, GLenum format)
|
GLint layer, GLenum format)
|
||||||
|
@@ -91,6 +91,10 @@ _mesa_MakeTextureHandleNonResidentARB_no_error(GLuint64 handle);
|
|||||||
void GLAPIENTRY
|
void GLAPIENTRY
|
||||||
_mesa_MakeTextureHandleNonResidentARB(GLuint64 handle);
|
_mesa_MakeTextureHandleNonResidentARB(GLuint64 handle);
|
||||||
|
|
||||||
|
GLuint64 GLAPIENTRY
|
||||||
|
_mesa_GetImageHandleARB_no_error(GLuint texture, GLint level, GLboolean layered,
|
||||||
|
GLint layer, GLenum format);
|
||||||
|
|
||||||
GLuint64 GLAPIENTRY
|
GLuint64 GLAPIENTRY
|
||||||
_mesa_GetImageHandleARB(GLuint texture, GLint level, GLboolean layered,
|
_mesa_GetImageHandleARB(GLuint texture, GLint level, GLboolean layered,
|
||||||
GLint layer, GLenum format);
|
GLint layer, GLenum format);
|
||||||
|
Reference in New Issue
Block a user