Mesa (master): mesa: return INVALID_VALUE from WaitSync if flags != 0

Matt Turner mattst88 at kemper.freedesktop.org
Thu Nov 15 23:20:34 UTC 2012


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

Author: Matt Turner <mattst88 at gmail.com>
Date:   Tue Nov 13 13:26:11 2012 -0800

mesa: return INVALID_VALUE from WaitSync if flags != 0

Fixes gles3conform's sync_error_waitsync_flags test.
Reviewed-by: Chad Versace <chad.versace at linux.intel.com>
Reviewed-by: Kenneth Graunke <kenneth at whitecape.org>

---

 src/mesa/main/syncobj.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/mesa/main/syncobj.c b/src/mesa/main/syncobj.c
index c4fe344..430c1ee 100644
--- a/src/mesa/main/syncobj.c
+++ b/src/mesa/main/syncobj.c
@@ -352,7 +352,7 @@ _mesa_WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout)
    }
 
    if (flags != 0) {
-      _mesa_error(ctx, GL_INVALID_ENUM, "glWaitSync(flags=0x%x)", flags);
+      _mesa_error(ctx, GL_INVALID_VALUE, "glWaitSync(flags=0x%x)", flags);
       return;
    }
 




More information about the mesa-commit mailing list