diff options
author | Marek Olšák <marek.olsak@amd.com> | 2020-10-03 15:19:19 -0400 |
---|---|---|
committer | Marge Bot <eric+marge@anholt.net> | 2020-11-21 21:02:56 +0000 |
commit | ac4dc6e139b8ed84622ba0fcdcea4ec15e60b586 (patch) | |
tree | 6ef112270dc87cb782c6a259445394280f8caef0 /src/mapi/glapi/gen/gl_API.xml | |
parent | 347a3d68cd8ed31fb50a7509f1526a2930d0cd50 (diff) |
mesa: add glInternalSetError for glthread
glthread wants to set GL errors, but has to do it by adding the SetError
call into the queue for it to be thread-safe.
Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7053>
Diffstat (limited to 'src/mapi/glapi/gen/gl_API.xml')
-rw-r--r-- | src/mapi/glapi/gen/gl_API.xml | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index 26f9e4ffba9..15905bb029e 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -13305,6 +13305,11 @@ <param name="named" type="GLboolean"/> <param name="ext_dsa" type="GLboolean"/> </function> + + <!-- Set a GL error. Used by glthread to set errors without syncing. --> + <function name="InternalSetError" es2="2.0"> + <param name="error" type="GLenum"/> + </function> </category> <xi:include href="OES_EGL_image.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/> |