mesa: add KHR_no_error support for glFenceSync()
authorSamuel Pitoiset <samuel.pitoiset@gmail.com>
Mon, 26 Jun 2017 12:49:51 +0000 (14:49 +0200)
committerSamuel Pitoiset <samuel.pitoiset@gmail.com>
Wed, 28 Jun 2017 08:25:13 +0000 (10:25 +0200)
Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Reviewed-by: Timothy Arceri <tarceri@itsqueeze.com>
src/mapi/glapi/gen/ARB_sync.xml
src/mesa/main/syncobj.c
src/mesa/main/syncobj.h

index 141d5aeef3cdf22bf7158d56a59c9ad626ac2349..f1463f11a86833492ee4de2cc15734f562156264 100644 (file)
@@ -39,7 +39,7 @@
     -->
 
 
-    <function name="FenceSync" es2="3.0">
+    <function name="FenceSync" es2="3.0" no_error="true">
         <param name="condition" type="GLenum"/>
         <param name="flags" type="GLbitfield"/>
         <return type="GLsync"/>
index 4278827b11d8f96b28c27ade13ac619920d11e09..9c165314bf3b2f59e33a1b3d4132c772172f2254 100644 (file)
@@ -291,6 +291,14 @@ fence_sync(struct gl_context *ctx, GLenum condition, GLbitfield flags)
 }
 
 
+GLsync GLAPIENTRY
+_mesa_FenceSync_no_error(GLenum condition, GLbitfield flags)
+{
+   GET_CURRENT_CONTEXT(ctx);
+   return fence_sync(ctx, condition, flags);
+}
+
+
 GLsync GLAPIENTRY
 _mesa_FenceSync(GLenum condition, GLbitfield flags)
 {
index 426959f6b2eba8ba5f05a1cf9d313f22d2eee842..2b50d062b130720e1ae228dc50c3386814f33377 100644 (file)
@@ -60,6 +60,9 @@ _mesa_IsSync(GLsync sync);
 extern void GLAPIENTRY
 _mesa_DeleteSync(GLsync sync);
 
+GLsync GLAPIENTRY
+_mesa_FenceSync_no_error(GLenum condition, GLbitfield flags);
+
 extern GLsync GLAPIENTRY
 _mesa_FenceSync(GLenum condition, GLbitfield flags);