summaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorKevin Rogovin <[email protected]>2015-06-17 13:29:51 +0300
committerMartin Peres <[email protected]>2015-06-17 14:39:02 +0300
commitc9d26f201aca58c72629d1ba1bb13c32c158d9dd (patch)
tree47f711f84b0c699afda51ccf747cece8eb7ad950 /src/mapi
parentda81999bee7b1f1bc0bb296e903deb03617ae22c (diff)
mesa: Constants and functions for ARB_framebuffer_no_attachments
Define the enumeration constants, function entry points and glGet for the GL_ARB_framebuffer_no_attachments. Reviewed-by: Ian Romanick <[email protected]> Signed-off-by: Kevin Rogovin <[email protected]>
Diffstat (limited to 'src/mapi')
-rw-r--r--src/mapi/glapi/gen/ARB_framebuffer_no_attachments.xml32
-rw-r--r--src/mapi/glapi/gen/Makefile.am1
-rw-r--r--src/mapi/glapi/gen/apiexec.py5
-rw-r--r--src/mapi/glapi/gen/gl_API.xml4
4 files changed, 41 insertions, 1 deletions
diff --git a/src/mapi/glapi/gen/ARB_framebuffer_no_attachments.xml b/src/mapi/glapi/gen/ARB_framebuffer_no_attachments.xml
new file mode 100644
index 00000000000..59839a044be
--- /dev/null
+++ b/src/mapi/glapi/gen/ARB_framebuffer_no_attachments.xml
@@ -0,0 +1,32 @@
+<?xml version="1.0"?>
+<!DOCTYPE OpenGLAPI SYSTEM "gl_API.dtd">
+
+<OpenGLAPI>
+
+<category name="GL_ARB_framebuffer_no_attachments" number="130">
+
+ <enum name="FRAMEBUFFER_DEFAULT_WIDTH" value="0x9310" />
+ <enum name="FRAMEBUFFER_DEFAULT_HEIGHT" value="0x9311" />
+ <enum name="FRAMEBUFFER_DEFAULT_LAYERS" value="0x9312" />
+ <enum name="FRAMEBUFFER_DEFAULT_SAMPLES" value="0x9313" />
+ <enum name="FRAMEBUFFER_DEFAULT_FIXED_SAMPLE_LOCATIONS" value="0x9314" />
+ <enum name="MAX_FRAMEBUFFER_WIDTH" value="0x9315" />
+ <enum name="MAX_FRAMEBUFFER_HEIGHT" value="0x9316" />
+ <enum name="MAX_FRAMEBUFFER_LAYERS" value="0x9317" />
+ <enum name="MAX_FRAMEBUFFER_SAMPLES" value="0x9318" />
+
+ <function name="FramebufferParameteri">
+ <param name="target" type="GLenum"/>
+ <param name="pname" type="GLenum"/>
+ <param name="param" type="GLint" />
+ </function>
+
+ <function name="GetFramebufferParameteriv">
+ <param name="target" type="GLenum" />
+ <param name="pname" type="GLenum" />
+ <param name="params" type="GLint *" output="true" />
+ </function>
+
+</category>
+
+</OpenGLAPI>
diff --git a/src/mapi/glapi/gen/Makefile.am b/src/mapi/glapi/gen/Makefile.am
index 34602579c8a..5b163b02e00 100644
--- a/src/mapi/glapi/gen/Makefile.am
+++ b/src/mapi/glapi/gen/Makefile.am
@@ -131,6 +131,7 @@ API_XML = \
ARB_draw_instanced.xml \
ARB_ES2_compatibility.xml \
ARB_ES3_compatibility.xml \
+ ARB_framebuffer_no_attachments.xml \
ARB_framebuffer_object.xml \
ARB_geometry_shader4.xml \
ARB_get_program_binary.xml \
diff --git a/src/mapi/glapi/gen/apiexec.py b/src/mapi/glapi/gen/apiexec.py
index 535de8a434b..b623b44beeb 100644
--- a/src/mapi/glapi/gen/apiexec.py
+++ b/src/mapi/glapi/gen/apiexec.py
@@ -138,6 +138,11 @@ functions = {
# with OpenGL 3.1.
"TexBufferRange": exec_info(core=31),
+ # OpenGL 4.3 / GL_ARB_framebuffer_no_attachments. Mesa can expose the
+ # extension with OpenGL 3.0.
+ "FramebufferParameteri": exec_info(compatibility=30, core=31),
+ "GetFramebufferParameteri": exec_info(compatibility=30, core=31),
+
# OpenGL 4.5 / GL_ARB_direct_state_access. Mesa can expose the extension
# with core profile.
"CreateTransformFeedbacks": exec_info(core=31),
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index bd8db62033e..2f330756f22 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -8188,7 +8188,9 @@
<!-- No new functions, types, enums. -->
</category>
-<!-- ARB extensions #130..#131 -->
+<xi:include href="ARB_framebuffer_no_attachments.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
+
+<!-- ARB extensions #131 -->
<category name="GL_ARB_explicit_uniform_location" number="128">
<enum name="MAX_UNIFORM_LOCATIONS" count="1" value="0x826E" >