<div dir="ltr">On 26 August 2013 03:43, Timothy Arceri <span dir="ltr"><<a href="mailto:t_arceri@yahoo.com.au" target="_blank">t_arceri@yahoo.com.au</a>></span> wrote:<br><div class="gmail_extra"><div class="gmail_quote">
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
Signed-off-by: Timothy Arceri <<a href="mailto:t_arceri@yahoo.com.au" target="_blank">t_arceri@yahoo.com.au</a>><br>
---<br>
src/mapi/glapi/gen/gl_API.xml | 149 +++++++++++++++++++++++++++++++++++++-<br>
src/mapi/glapi/gen/gl_genexec.py | 1 +<br>
2 files changed, 149 insertions(+), 1 deletion(-)<br>
<br>
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml<br>
index 82b908f..71aa9a7 100644<br>
--- a/src/mapi/glapi/gen/gl_API.xml<br>
+++ b/src/mapi/glapi/gen/gl_API.xml<br>
@@ -1107,6 +1107,7 @@<br>
<type name="void" size="1"/><br>
<br>
<type name="DEBUGPROCARB" size="4" pointer="true"/><br>
+ <type name="DEBUGPROC" size="4" pointer="true"/><br>
<br>
<function name="NewList" offset="0" deprecated="3.1"><br>
<param name="list" type="GLuint"/><br>
@@ -8309,7 +8310,153 @@<br>
<br>
<xi:include href="ARB_texture_storage.xml" xmlns:xi="<a href="http://www.w3.org/2001/XInclude" target="_blank">http://www.w3.org/2001/XInclude</a>"/><br>
<br>
-<!-- ARB extensions #118...#126 --><br>
+<!-- ARB extension #118 --><br>
+<br>
+<category name="GL_KHR_debug" number="119"><br>
+ <enum name="DEBUG_OUTPUT" value="0x92E0"/><br>
+ <enum name="DEBUG_OUTPUT_SYNCHRONOUS" value="0x8242"/><br>
+<br>
+ <enum name="CONTEXT_FLAG_DEBUG_BIT" value="0x00000002"/><br>
+<br>
+ <enum name="MAX_DEBUG_MESSAGE_LENGTH" count="1" value="0x9143"><br>
+ <size name="Get" mode="get"/><br>
+ </enum><br>
+ <enum name="MAX_DEBUG_LOGGED_MESSAGES" count="1" value="0x9144"><br>
+ <size name="Get" mode="get"/><br>
+ </enum><br>
+ <enum name="DEBUG_LOGGED_MESSAGES" count="1" value="0x9145"><br>
+ <size name="Get" mode="get"/><br>
+ </enum><br>
+ <enum name="DEBUG_NEXT_LOGGED_MESSAGE_LENGTH" count="1" value="0x8243"><br>
+ <size name="Get" mode="get"/><br>
+ </enum><br>
+ <enum name="MAX_DEBUG_GROUP_STACK_DEPTH" count="1" value="0x826C"><br>
+ <size name="Get" mode="get"/><br>
+ </enum><br>
+ <enum name="DEBUG_GROUP_STACK_DEPTH" count="1" value="0x826D"><br>
+ <size name="Get" mode="get"/><br>
+ </enum><br>
+ <enum name="MAX_LABEL_LENGTH" count="1" value="0x82E8"><br>
+ <size name="Get" mode="get"/><br>
+ </enum><br>
+<br>
+ <enum name="DEBUG_CALLBACK_FUNCTION" count="1" value="0x8244"><br>
+ <size name="GetPointerv" mode="get"/><br>
+ </enum><br>
+ <enum name="DEBUG_CALLBACK_USER_PARAM" count="1" value="0x8245"><br>
+ <size name="GetPointerv" mode="get"/><br>
+ </enum><br>
+<br>
+ <enum name="DEBUG_SOURCE_API" value="0x8246"/><br>
+ <enum name="DEBUG_SOURCE_WINDOW_SYSTEM" value="0x8247"/><br>
+ <enum name="DEBUG_SOURCE_SHADER_COMPILER" value="0x8248"/><br>
+ <enum name="DEBUG_SOURCE_THIRD_PARTY" value="0x8249"/><br>
+ <enum name="DEBUG_SOURCE_APPLICATION" value="0x824A"/><br>
+ <enum name="DEBUG_SOURCE_OTHER" value="0x824B"/><br>
+<br>
+ <enum name="DEBUG_TYPE_ERROR" value="0x824C"/><br>
+ <enum name="DEBUG_TYPE_DEPRECATED_BEHAVIOR" value="0x824D"/><br>
+ <enum name="DEBUG_TYPE_UNDEFINED_BEHAVIOR" value="0x824E"/><br>
+ <enum name="DEBUG_TYPE_PORTABILITY" value="0x824F"/><br>
+ <enum name="DEBUG_TYPE_PERFORMANCE" value="0x8250"/><br>
+ <enum name="DEBUG_TYPE_OTHER" value="0x8251"/><br>
+ <enum name="DEBUG_TYPE_MARKER" value="0x8268"/><br>
+<br>
+ <enum name="DEBUG_TYPE_PUSH_GROUP" value="0x8269"/><br>
+ <enum name="DEBUG_TYPE_POP_GROUP" value="0x826A"/><br>
+<br>
+ <enum name="DEBUG_SEVERITY_HIGH" value="0x9146"/><br>
+ <enum name="DEBUG_SEVERITY_MEDIUM" value="0x9147"/><br>
+ <enum name="DEBUG_SEVERITY_LOW" value="0x9148"/><br>
+ <enum name="DEBUG_SEVERITY_NOTIFICATION" value="0x826B"/><br>
+<br>
+ <enum name="STACK_UNDERFLOW" value="0x0504"/><br>
+ <enum name="STACK_OVERFLOW" value="0x0503"/><br>
+<br>
+ <enum name="BUFFER" value="0x82E0"/><br>
+ <enum name="SHADER" value="0x82E1"/><br>
+ <enum name="PROGRAM" value="0x82E2"/><br>
+ <enum name="QUERY" value="0x82E3"/><br>
+ <enum name="PROGRAM_PIPELINE" value="0x82E4"/><br>
+ <enum name="SAMPLER" value="0x82E6"/><br>
+ <!-- Compatibility Profile --><br>
+ <enum name="DISPLAY_LIST" value="0x82E7"/><br>
+<br>
+ <function name="DebugMessageControl" offset="assign"><br>
+ <param name="source" type="GLenum"/><br>
+ <param name="type" type="GLenum"/><br>
+ <param name="severity" type="GLenum"/><br>
+ <param name="count" type="GLsizei" counter="true"/><br>
+ <param name="ids" type="const GLuint *" count="count"/><br>
+ <param name="enabled" type="GLboolean"/><br>
+ </function><br>
+<br>
+ <function name="DebugMessageInsert" offset="assign"><br>
+ <param name="source" type="GLenum"/><br>
+ <param name="type" type="GLenum"/><br>
+ <param name="id" type="GLuint"/><br>
+ <param name="severity" type="GLenum"/><br>
+ <param name="length" type="GLsizei"/><br>
+ <param name="buf" type="const GLchar *"/><br>
+ </function><br>
+<br>
+ <function name="DebugMessageCallback" offset="assign"><br>
+ <param name="callback" type="GLDEBUGPROC"/><br>
+ <param name="userParam" type="const GLvoid *"/><br>
+ </function><br>
+<br>
+ <function name="GetDebugMessageLog" offset="assign"><br>
+ <return type="GLuint"/><br>
+ <param name="count" type="GLuint"/><br>
+ <param name="bufsize" type="GLsizei"/><br>
+ <param name="sources" type="GLenum *" output="true"/><br>
+ <param name="types" type="GLenum *" output="true"/><br>
+ <param name="ids" type="GLuint *" output="true"/><br>
+ <param name="severities" type="GLenum *" output="true"/><br>
+ <param name="lengths" type="GLsizei *" output="true"/><br>
+ <param name="messageLog" type="GLchar *" output="true"/><br>
+ </function><br>
+<br>
+ <function name="PushDebugGroup" offset="assign"><br>
+ <param name="source" type="GLenum"/><br>
+ <param name="id" type="GLuint"/><br>
+ <param name="length" type="GLsizei"/><br>
+ <param name="message" type="const GLchar *"/><br>
+ </function><br>
+<br>
+ <function name="PopDebugGroup" offset="assign"/><br>
+<br>
+ <function name="ObjectLabel" offset="assign"><br>
+ <param name="identifier" type="GLenum"/><br>
+ <param name="name" type="GLuint"/><br>
+ <param name="length" type="GLsizei"/><br>
+ <param name="label" type="const GLchar *"/><br>
+ </function><br>
+<br>
+ <function name="GetObjectLabel" offset="assign"><br>
+ <param name="identifier" type="GLenum"/><br>
+ <param name="name" type="GLuint"/><br>
+ <param name="bufSize" type="GLsizei"/><br>
+ <param name="length" type="GLsizei *"/><br>
+ <param name="label" type="GLchar *"/><br>
+ </function><br>
+<br>
+ <function name="ObjectPtrLabel" offset="assign"><br>
+ <param name="ptr" type="const GLvoid *"/><br>
+ <param name="length" type="GLsizei"/><br>
+ <param name="label" type="const GLchar *"/><br>
+ </function><br>
+<br>
+ <function name="GetObjectPtrLabel" offset="assign"><br>
+ <param name="ptr" type="const GLvoid *"/><br>
+ <param name="bufSize" type="GLsizei"/><br>
+ <param name="length" type="GLsizei *"/><br>
+ <param name="label" type="GLchar *"/><br>
+ </function><br>
+<br>
+</category><br>
+<br>
+<!-- ARB extensions #120...#126 --><br>
<br>
<xi:include href="ARB_ES3_compatibility.xml" xmlns:xi="<a href="http://www.w3.org/2001/XInclude" target="_blank">http://www.w3.org/2001/XInclude</a>"/><br>
<br>
diff --git a/src/mapi/glapi/gen/gl_genexec.py b/src/mapi/glapi/gen/gl_genexec.py<br>
index e91d4e9..be82f90 100644<br>
--- a/src/mapi/glapi/gen/gl_genexec.py<br>
+++ b/src/mapi/glapi/gen/gl_genexec.py<br>
@@ -81,6 +81,7 @@ header = """/**<br>
#include "main/lines.h"<br>
#include "main/matrix.h"<br>
#include "main/multisample.h"<br>
+#include "main/objectlabel.h"<br>
#include "main/pixel.h"<br>
#include "main/pixelstore.h"<br>
#include "main/points.h"<br>
<span><font color="#888888">--<br>
1.7.9.5</font></span></blockquote><div> </div></div></div><div class="gmail_extra">This commit caused "make check" to fail for me. With a clean build, I get the following:<br><br>============================================================================<br>
Testsuite summary for Mesa 9.3.0-devel<br>============================================================================<br># TOTAL: 1<br># PASS: 0<br># SKIP: 0<br># XFAIL: 0<br># FAIL: 1<br># XPASS: 0<br># ERROR: 0<br>
============================================================================<br>
See src/mesa/main/tests/test-suite.log<br>Please report to <a href="https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa" target="_blank">https://bugs.freedesktop.org/enter_bug.cgi?product=Mesa</a><br>============================================================================<br>
<br></div><div class="gmail_extra">Then, in src/mesa/main/tests/test-suite.log:<br><br>==========================================================<br> Mesa 9.3.0-devel: src/mesa/main/tests/test-suite.log<br>==========================================================<br>
<br># TOTAL: 1<br># PASS: 0<br># SKIP: 0<br># XFAIL: 0<br># FAIL: 1<br># XPASS: 0<br># ERROR: 0<br><br>.. contents:: :depth: 2<br><br>FAIL: main-test<br>===============<br><br>Running main() from gtest_main.cc<br>[==========] Running 8 tests from 2 test cases.<br>
[----------] Global test environment set-up.<br>[----------] 4 tests from EnumStrings<br>[ RUN ] EnumStrings.LookUpByNumber<br>[ OK ] EnumStrings.LookUpByNumber (1 ms)<br>[ RUN ] EnumStrings.LookUpByName<br>
[ OK ] EnumStrings.LookUpByName (1 ms)<br>[ RUN ] EnumStrings.LookUpByDuplicateName<br>[ OK ] EnumStrings.LookUpByDuplicateName (0 ms)<br>[ RUN ] EnumStrings.LookUpUnknownNumber<br>[ OK ] EnumStrings.LookUpUnknownNumber (0 ms)<br>
[----------] 4 tests from EnumStrings (2 ms total)<br><br>[----------] 4 tests from DispatchSanity_test<br>[ RUN ] DispatchSanity_test.GL31_CORE<br>dispatch_sanity.cpp:166: Failure<br>Value of: table[i]<br> Actual: 0x4342fa<br>
Expected: (_glapi_proc) _mesa_generic_nop<br>Which is: 0x40c62c<br>i = 857 (DebugMessageCallback)<br>dispatch_sanity.cpp:166: Failure<br>Value of: table[i]<br> Actual: 0x4342a3<br>Expected: (_glapi_proc) _mesa_generic_nop<br>
Which is: 0x40c62c<br>i = 858 (DebugMessageControl)<br>dispatch_sanity.cpp:166: Failure<br>Value of: table[i]<br> Actual: 0x4341b4<br>Expected: (_glapi_proc) _mesa_generic_nop<br>Which is: 0x40c62c<br>i = 859 (DebugMessageInsert)<br>
dispatch_sanity.cpp:166: Failure<br>Value of: table[i]<br> Actual: 0x434239<br>Expected: (_glapi_proc) _mesa_generic_nop<br>Which is: 0x40c62c<br>i = 860 (GetDebugMessageLog)<br>dispatch_sanity.cpp:166: Failure<br>Value of: table[i]<br>
Actual: 0x5d3e92<br>Expected: (_glapi_proc) _mesa_generic_nop<br>Which is: 0x40c62c<br>i = 861 (GetObjectLabel)<br>dispatch_sanity.cpp:166: Failure<br>Value of: table[i]<br> Actual: 0x5d3f85<br>Expected: (_glapi_proc) _mesa_generic_nop<br>
Which is: 0x40c62c<br>i = 862 (GetObjectPtrLabel)<br>dispatch_sanity.cpp:166: Failure<br>Value of: table[i]<br> Actual: 0x5d3e28<br>Expected: (_glapi_proc) _mesa_generic_nop<br>Which is: 0x40c62c<br>i = 863 (ObjectLabel)<br>
dispatch_sanity.cpp:166: Failure<br>Value of: table[i]<br> Actual: 0x5d3ef9<br>Expected: (_glapi_proc) _mesa_generic_nop<br>Which is: 0x40c62c<br>i = 864 (ObjectPtrLabel)<br>dispatch_sanity.cpp:166: Failure<br>Value of: table[i]<br>
Actual: 0x434a9c<br>Expected: (_glapi_proc) _mesa_generic_nop<br>Which is: 0x40c62c<br>i = 865 (PopDebugGroup)<br>dispatch_sanity.cpp:166: Failure<br>Value of: table[i]<br> Actual: 0x434340<br>Expected: (_glapi_proc) _mesa_generic_nop<br>
Which is: 0x40c62c<br>i = 866 (PushDebugGroup)<br>[ FAILED ] DispatchSanity_test.GL31_CORE (3 ms)<br>[ RUN ] DispatchSanity_test.GLES11<br>[ OK ] DispatchSanity_test.GLES11 (1 ms)<br>[ RUN ] DispatchSanity_test.GLES2<br>
[ OK ] DispatchSanity_test.GLES2 (0 ms)<br>[ RUN ] DispatchSanity_test.GLES3<br>[ OK ] DispatchSanity_test.GLES3 (1 ms)<br>[----------] 4 tests from DispatchSanity_test (5 ms total)<br><br>[----------] Global test environment tear-down<br>
[==========] 8 tests from 2 test cases ran. (7 ms total)<br>[ PASSED ] 7 tests.<br>[ FAILED ] 1 test, listed below:<br>[ FAILED ] DispatchSanity_test.GL31_CORE<br><br> 1 FAILED TEST<br><br><br></div></div>