[Mesa-dev] [PATCH 02/11] glapi: add ARB_debug_output.xml

nobled nobled at dreamwidth.org
Mon May 2 15:59:57 PDT 2011


---
 src/mapi/glapi/gen/ARB_debug_output.xml |   93 +++++++++++++++++++++++++++++++
 src/mapi/glapi/gen/Makefile             |    1 +
 src/mapi/glapi/gen/gl_API.xml           |    2 +
 3 files changed, 96 insertions(+), 0 deletions(-)
 create mode 100644 src/mapi/glapi/gen/ARB_debug_output.xml

diff --git a/src/mapi/glapi/gen/ARB_debug_output.xml
b/src/mapi/glapi/gen/ARB_debug_output.xml
new file mode 100644
index 0000000..f2877a4
--- /dev/null
+++ b/src/mapi/glapi/gen/ARB_debug_output.xml
@@ -0,0 +1,93 @@
+<?xml version="1.0"?>
+<!DOCTYPE OpenGLAPI SYSTEM "gl_API.dtd">
+
+<!-- Note: no GLX protocol info yet. -->
+
+
+<OpenGLAPI>
+
+<category name="GL_ARB_debug_output" number="104">
+
+    <!-- glEnable/Disable/IsEnabled -->
+    <enum name="DEBUG_OUTPUT_SYNCHRONOUS_ARB"              value="0x8242"/>
+
+    <!-- glGetIntegerv -->
+    <enum name="MAX_DEBUG_MESSAGE_LENGTH_ARB"    count="1" value="0x9143">
+        <size name="Get" mode="get"/>
+    </enum>
+    <enum name="MAX_DEBUG_LOGGED_MESSAGES_ARB"   count="1" value="0x9144">
+        <size name="Get" mode="get"/>
+    </enum>
+    <enum name="DEBUG_LOGGED_MESSAGES_ARB"       count="1" value="0x9145">
+        <size name="Get" mode="get"/>
+    </enum>
+    <enum name="DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB" count="1" value="0x8243">
+        <size name="Get" mode="get"/>
+    </enum>
+
+    <!-- glGetPointerv -->
+    <enum name="DEBUG_CALLBACK_FUNCTION_ARB"     count="1" value="0x8244">
+        <size name="GetPointerv" mode="get"/>
+    </enum>
+    <enum name="DEBUG_CALLBACK_USER_PARAM_ARB"   count="1" value="0x8245">
+        <size name="GetPointerv" mode="get"/>
+    </enum>
+
+    <enum name="DEBUG_SOURCE_API_ARB"                      value="0x8246"/>
+    <enum name="DEBUG_SOURCE_WINDOW_SYSTEM_ARB"            value="0x8247"/>
+    <enum name="DEBUG_SOURCE_SHADER_COMPILER_ARB"          value="0x8248"/>
+    <enum name="DEBUG_SOURCE_THIRD_PARTY_ARB"              value="0x8249"/>
+    <enum name="DEBUG_SOURCE_APPLICATION_ARB"              value="0x824A"/>
+    <enum name="DEBUG_SOURCE_OTHER_ARB"                    value="0x824B"/>
+
+    <enum name="DEBUG_TYPE_ERROR_ARB"                      value="0x824C"/>
+    <enum name="DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB"        value="0x824D"/>
+    <enum name="DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB"         value="0x824E"/>
+    <enum name="DEBUG_TYPE_PORTABILITY_ARB"                value="0x824F"/>
+    <enum name="DEBUG_TYPE_PERFORMANCE_ARB"                value="0x8250"/>
+    <enum name="DEBUG_TYPE_OTHER_ARB"                      value="0x8251"/>
+
+    <enum name="DEBUG_SEVERITY_HIGH_ARB"                   value="0x9146"/>
+    <enum name="DEBUG_SEVERITY_MEDIUM_ARB"                 value="0x9147"/>
+    <enum name="DEBUG_SEVERITY_LOW_ARB"                    value="0x9148"/>
+
+
+    <function name="DebugMessageControlARB" offset="assign">
+        <param name="source" type="GLenum"/>
+        <param name="type" type="GLenum"/>
+        <param name="severity" type="GLenum"/>
+        <param name="count" type="GLsizei" counter="true"/>
+        <param name="ids" type="const GLuint *" count="count"/>
+        <param name="enabled" type="GLboolean"/>
+    </function>
+
+    <function name="DebugMessageInsertARB" offset="assign">
+        <param name="source" type="GLenum"/>
+        <param name="type" type="GLenum"/>
+        <param name="id" type="GLuint"/>
+        <param name="severity" type="GLenum"/>
+        <param name="length" type="GLsizei"/>
+        <param name="buf" type="const GLcharARB *"/>
+    </function>
+
+    <function name="DebugMessageCallbackARB" offset="assign">
+        <param name="callback" type="GLDEBUGPROCARB"/>
+        <param name="userParam" type="GLvoid *"/>
+    </function>
+
+    <function name="GetDebugMessageLogARB" offset="assign">
+        <return type="GLuint"/>
+        <param name="count" type="GLuint"/>
+        <param name="bufsize" type="GLsizei"/>
+        <param name="sources" type="GLenum *" output="true"/>
+        <param name="types" type="GLenum *" output="true"/>
+        <param name="ids" type="GLuint *" output="true"/>
+        <param name="severities" type="GLenum *" output="true"/>
+        <param name="lengths" type="GLsizei *" output="true"/>
+        <param name="messageLog" type="GLcharARB *" output="true"/>
+    </function>
+
+</category>
+
+
+</OpenGLAPI>
diff --git a/src/mapi/glapi/gen/Makefile b/src/mapi/glapi/gen/Makefile
index f02e5d2..cc8e425 100644
--- a/src/mapi/glapi/gen/Makefile
+++ b/src/mapi/glapi/gen/Makefile
@@ -71,6 +71,7 @@ API_XML = \
 	gl_API.xml \
 	ARB_color_buffer_float.xml \
 	ARB_copy_buffer.xml \
+	ARB_debug_output.xml \
 	ARB_depth_clamp.xml \
 	ARB_draw_buffers_blend.xml \
 	ARB_draw_elements_base_vertex.xml \
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index a6f8dd0..38b161f 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -7983,6 +7983,8 @@

 <xi:include href="ARB_color_buffer_float.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"/>

+<xi:include href="ARB_debug_output.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"/>
+
 <xi:include href="ARB_robustness.xml"
xmlns:xi="http://www.w3.org/2001/XInclude"/>

 <!-- Non-ARB extensions sorted by extension number. -->
-- 
1.7.0.4
-------------- next part --------------
From ba3d3feca3f8a731d1e3294dc499d19f33817f4c Mon Sep 17 00:00:00 2001
From: nobled <nobled at dreamwidth.org>
Date: Sun, 1 May 2011 15:46:12 +0000
Subject: [PATCH 4/5] glapi: add ARB_debug_output.xml

---
 src/mapi/glapi/gen/ARB_debug_output.xml |   93 +++++++++++++++++++++++++++++++
 src/mapi/glapi/gen/Makefile             |    1 +
 src/mapi/glapi/gen/gl_API.xml           |    2 +
 3 files changed, 96 insertions(+), 0 deletions(-)
 create mode 100644 src/mapi/glapi/gen/ARB_debug_output.xml

diff --git a/src/mapi/glapi/gen/ARB_debug_output.xml b/src/mapi/glapi/gen/ARB_debug_output.xml
new file mode 100644
index 0000000..f2877a4
--- /dev/null
+++ b/src/mapi/glapi/gen/ARB_debug_output.xml
@@ -0,0 +1,93 @@
+<?xml version="1.0"?>
+<!DOCTYPE OpenGLAPI SYSTEM "gl_API.dtd">
+
+<!-- Note: no GLX protocol info yet. -->
+
+
+<OpenGLAPI>
+
+<category name="GL_ARB_debug_output" number="104">
+
+    <!-- glEnable/Disable/IsEnabled -->
+    <enum name="DEBUG_OUTPUT_SYNCHRONOUS_ARB"              value="0x8242"/>
+
+    <!-- glGetIntegerv -->
+    <enum name="MAX_DEBUG_MESSAGE_LENGTH_ARB"    count="1" value="0x9143">
+        <size name="Get" mode="get"/>
+    </enum>
+    <enum name="MAX_DEBUG_LOGGED_MESSAGES_ARB"   count="1" value="0x9144">
+        <size name="Get" mode="get"/>
+    </enum>
+    <enum name="DEBUG_LOGGED_MESSAGES_ARB"       count="1" value="0x9145">
+        <size name="Get" mode="get"/>
+    </enum>
+    <enum name="DEBUG_NEXT_LOGGED_MESSAGE_LENGTH_ARB" count="1" value="0x8243">
+        <size name="Get" mode="get"/>
+    </enum>
+
+    <!-- glGetPointerv -->
+    <enum name="DEBUG_CALLBACK_FUNCTION_ARB"     count="1" value="0x8244">
+        <size name="GetPointerv" mode="get"/>
+    </enum>
+    <enum name="DEBUG_CALLBACK_USER_PARAM_ARB"   count="1" value="0x8245">
+        <size name="GetPointerv" mode="get"/>
+    </enum>
+
+    <enum name="DEBUG_SOURCE_API_ARB"                      value="0x8246"/>
+    <enum name="DEBUG_SOURCE_WINDOW_SYSTEM_ARB"            value="0x8247"/>
+    <enum name="DEBUG_SOURCE_SHADER_COMPILER_ARB"          value="0x8248"/>
+    <enum name="DEBUG_SOURCE_THIRD_PARTY_ARB"              value="0x8249"/>
+    <enum name="DEBUG_SOURCE_APPLICATION_ARB"              value="0x824A"/>
+    <enum name="DEBUG_SOURCE_OTHER_ARB"                    value="0x824B"/>
+
+    <enum name="DEBUG_TYPE_ERROR_ARB"                      value="0x824C"/>
+    <enum name="DEBUG_TYPE_DEPRECATED_BEHAVIOR_ARB"        value="0x824D"/>
+    <enum name="DEBUG_TYPE_UNDEFINED_BEHAVIOR_ARB"         value="0x824E"/>
+    <enum name="DEBUG_TYPE_PORTABILITY_ARB"                value="0x824F"/>
+    <enum name="DEBUG_TYPE_PERFORMANCE_ARB"                value="0x8250"/>
+    <enum name="DEBUG_TYPE_OTHER_ARB"                      value="0x8251"/>
+
+    <enum name="DEBUG_SEVERITY_HIGH_ARB"                   value="0x9146"/>
+    <enum name="DEBUG_SEVERITY_MEDIUM_ARB"                 value="0x9147"/>
+    <enum name="DEBUG_SEVERITY_LOW_ARB"                    value="0x9148"/>
+
+
+    <function name="DebugMessageControlARB" offset="assign">
+        <param name="source" type="GLenum"/>
+        <param name="type" type="GLenum"/>
+        <param name="severity" type="GLenum"/>
+        <param name="count" type="GLsizei" counter="true"/>
+        <param name="ids" type="const GLuint *" count="count"/>
+        <param name="enabled" type="GLboolean"/>
+    </function>
+
+    <function name="DebugMessageInsertARB" offset="assign">
+        <param name="source" type="GLenum"/>
+        <param name="type" type="GLenum"/>
+        <param name="id" type="GLuint"/>
+        <param name="severity" type="GLenum"/>
+        <param name="length" type="GLsizei"/>
+        <param name="buf" type="const GLcharARB *"/>
+    </function>
+
+    <function name="DebugMessageCallbackARB" offset="assign">
+        <param name="callback" type="GLDEBUGPROCARB"/>
+        <param name="userParam" type="GLvoid *"/>
+    </function>
+
+    <function name="GetDebugMessageLogARB" offset="assign">
+        <return type="GLuint"/>
+        <param name="count" type="GLuint"/>
+        <param name="bufsize" type="GLsizei"/>
+        <param name="sources" type="GLenum *" output="true"/>
+        <param name="types" type="GLenum *" output="true"/>
+        <param name="ids" type="GLuint *" output="true"/>
+        <param name="severities" type="GLenum *" output="true"/>
+        <param name="lengths" type="GLsizei *" output="true"/>
+        <param name="messageLog" type="GLcharARB *" output="true"/>
+    </function>
+
+</category>
+
+
+</OpenGLAPI>
diff --git a/src/mapi/glapi/gen/Makefile b/src/mapi/glapi/gen/Makefile
index f02e5d2..cc8e425 100644
--- a/src/mapi/glapi/gen/Makefile
+++ b/src/mapi/glapi/gen/Makefile
@@ -71,6 +71,7 @@ API_XML = \
 	gl_API.xml \
 	ARB_color_buffer_float.xml \
 	ARB_copy_buffer.xml \
+	ARB_debug_output.xml \
 	ARB_depth_clamp.xml \
 	ARB_draw_buffers_blend.xml \
 	ARB_draw_elements_base_vertex.xml \
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index a6f8dd0..38b161f 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -7983,6 +7983,8 @@
 
 <xi:include href="ARB_color_buffer_float.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
 
+<xi:include href="ARB_debug_output.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
+
 <xi:include href="ARB_robustness.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
 
 <!-- Non-ARB extensions sorted by extension number. -->
-- 
1.7.0.4


More information about the mesa-dev mailing list