summaryrefslogtreecommitdiffstats
path: root/src/mapi
diff options
context:
space:
mode:
authorDave Airlie <[email protected]>2014-06-11 13:17:36 +1000
committerIlia Mirkin <[email protected]>2015-02-19 00:28:33 -0500
commit3c915e5c1662f2d9d32bec04033967a5cceeca8f (patch)
tree8aa1f625da83f4b3f2d9cc747e80ed4fc22d2c3d /src/mapi
parent069dab75765a7ea8b995eea80167ffb34cdb0034 (diff)
glapi: add ARB_gpu_shader_fp64 (v2)
Just add the xml file covering this extension, and dummy interface files in mesa, and fix up sanity tests. v2: Enable ProgramUniform*d* from ARB_separate_shader_objects (Ian) use 40 instead of 43 for dispatch_sanity.cpp (Chris) uncomment PU sanity tests. Signed-off-by: Dave Airlie <[email protected]> Reviewed-by: Ian Romanick <[email protected]> Reviewed-by: Ilia Mirkin <[email protected]>
Diffstat (limited to 'src/mapi')
-rw-r--r--src/mapi/glapi/gen/ARB_gpu_shader_fp64.xml143
-rw-r--r--src/mapi/glapi/gen/ARB_separate_shader_objects.xml2
-rw-r--r--src/mapi/glapi/gen/Makefile.am1
-rw-r--r--src/mapi/glapi/gen/gl_API.xml2
4 files changed, 146 insertions, 2 deletions
diff --git a/src/mapi/glapi/gen/ARB_gpu_shader_fp64.xml b/src/mapi/glapi/gen/ARB_gpu_shader_fp64.xml
new file mode 100644
index 00000000000..4f860ef8c69
--- /dev/null
+++ b/src/mapi/glapi/gen/ARB_gpu_shader_fp64.xml
@@ -0,0 +1,143 @@
+<?xml version="1.0"?>
+<!DOCTYPE OpenGLAPI SYSTEM "gl_API.dtd">
+
+<OpenGLAPI>
+
+<category name="GL_ARB_gpu_shader_fp64" number="89">
+
+ <function name="Uniform1d" offset="assign">
+ <param name="location" type="GLint"/>
+ <param name="x" type="GLdouble"/>
+ </function>
+
+ <function name="Uniform2d" offset="assign">
+ <param name="location" type="GLint"/>
+ <param name="x" type="GLdouble"/>
+ <param name="y" type="GLdouble"/>
+ </function>
+
+ <function name="Uniform3d" offset="assign">
+ <param name="location" type="GLint"/>
+ <param name="x" type="GLdouble"/>
+ <param name="y" type="GLdouble"/>
+ <param name="z" type="GLdouble"/>
+ </function>
+
+ <function name="Uniform4d" offset="assign">
+ <param name="location" type="GLint"/>
+ <param name="x" type="GLdouble"/>
+ <param name="y" type="GLdouble"/>
+ <param name="z" type="GLdouble"/>
+ <param name="w" type="GLdouble"/>
+ </function>
+
+ <function name="Uniform1dv" offset="assign">
+ <param name="location" type="GLint"/>
+ <param name="count" type="GLsizei"/>
+ <param name="value" type="const GLdouble *"/>
+ </function>
+
+ <function name="Uniform2dv" offset="assign">
+ <param name="location" type="GLint"/>
+ <param name="count" type="GLsizei"/>
+ <param name="value" type="const GLdouble *"/>
+ </function>
+
+ <function name="Uniform3dv" offset="assign">
+ <param name="location" type="GLint"/>
+ <param name="count" type="GLsizei"/>
+ <param name="value" type="const GLdouble *"/>
+ </function>
+
+ <function name="Uniform4dv" offset="assign">
+ <param name="location" type="GLint"/>
+ <param name="count" type="GLsizei"/>
+ <param name="value" type="const GLdouble *"/>
+ </function>
+
+ <function name="UniformMatrix2dv" offset="assign">
+ <param name="location" type="GLint"/>
+ <param name="count" type="GLsizei"/>
+ <param name="transpose" type="GLboolean"/>
+ <param name="value" type="const GLdouble *"/>
+ </function>
+
+ <function name="UniformMatrix3dv" offset="assign">
+ <param name="location" type="GLint"/>
+ <param name="count" type="GLsizei"/>
+ <param name="transpose" type="GLboolean"/>
+ <param name="value" type="const GLdouble *"/>
+ </function>
+
+ <function name="UniformMatrix4dv" offset="assign">
+ <param name="location" type="GLint"/>
+ <param name="count" type="GLsizei"/>
+ <param name="transpose" type="GLboolean"/>
+ <param name="value" type="const GLdouble *"/>
+ </function>
+
+ <function name="UniformMatrix2x3dv" offset="assign">
+ <param name="location" type="GLint"/>
+ <param name="count" type="GLsizei"/>
+ <param name="transpose" type="GLboolean"/>
+ <param name="value" type="const GLdouble *"/>
+ </function>
+
+ <function name="UniformMatrix2x4dv" offset="assign">
+ <param name="location" type="GLint"/>
+ <param name="count" type="GLsizei"/>
+ <param name="transpose" type="GLboolean"/>
+ <param name="value" type="const GLdouble *"/>
+ </function>
+
+ <function name="UniformMatrix3x2dv" offset="assign">
+ <param name="location" type="GLint"/>
+ <param name="count" type="GLsizei"/>
+ <param name="transpose" type="GLboolean"/>
+ <param name="value" type="const GLdouble *"/>
+ </function>
+
+ <function name="UniformMatrix3x4dv" offset="assign">
+ <param name="location" type="GLint"/>
+ <param name="count" type="GLsizei"/>
+ <param name="transpose" type="GLboolean"/>
+ <param name="value" type="const GLdouble *"/>
+ </function>
+
+ <function name="UniformMatrix4x2dv" offset="assign">
+ <param name="location" type="GLint"/>
+ <param name="count" type="GLsizei"/>
+ <param name="transpose" type="GLboolean"/>
+ <param name="value" type="const GLdouble *"/>
+ </function>
+
+ <function name="UniformMatrix4x3dv" offset="assign">
+ <param name="location" type="GLint"/>
+ <param name="count" type="GLsizei"/>
+ <param name="transpose" type="GLboolean"/>
+ <param name="value" type="const GLdouble *"/>
+ </function>
+
+ <function name="GetUniformdv" offset="assign">
+ <param name="program" type="GLuint"/>
+ <param name="location" type="GLint"/>
+ <param name="params" type="GLdouble *"/>
+ </function>
+
+ <enum name="DOUBLE_VEC2" value="0x8FFC"/>
+ <enum name="DOUBLE_VEC3" value="0x8FFD"/>
+ <enum name="DOUBLE_VEC4" value="0x8FFE"/>
+
+ <enum name="DOUBLE_MAT2" value="0x8F46"/>
+ <enum name="DOUBLE_MAT3" value="0x8F47"/>
+ <enum name="DOUBLE_MAT4" value="0x8F48"/>
+ <enum name="DOUBLE_MAT2x3" value="0x8F49"/>
+ <enum name="DOUBLE_MAT2x4" value="0x8F4A"/>
+ <enum name="DOUBLE_MAT3x2" value="0x8F4B"/>
+ <enum name="DOUBLE_MAT3x4" value="0x8F4C"/>
+ <enum name="DOUBLE_MAT4x2" value="0x8F4D"/>
+ <enum name="DOUBLE_MAT4x3" value="0x8F4E"/>
+</category>
+
+</OpenGLAPI>
+
diff --git a/src/mapi/glapi/gen/ARB_separate_shader_objects.xml b/src/mapi/glapi/gen/ARB_separate_shader_objects.xml
index d006917af70..96ae2b9cb62 100644
--- a/src/mapi/glapi/gen/ARB_separate_shader_objects.xml
+++ b/src/mapi/glapi/gen/ARB_separate_shader_objects.xml
@@ -282,7 +282,6 @@
<param name="infoLog" type="GLchar *" />
</function>
- <!-- depends on GL_ARB_gpu_shader_fp64
<function name="ProgramUniform1d" offset="assign" static_dispatch="false">
<param name="program" type="GLuint" />
<param name="location" type="GLint" />
@@ -396,6 +395,5 @@
<param name="count" type="GLsizei" />
<param name="value" type="const GLdouble *" />
</function>
- -->
</category>
</OpenGLAPI>
diff --git a/src/mapi/glapi/gen/Makefile.am b/src/mapi/glapi/gen/Makefile.am
index 28973c49f1c..1c4b86aab6f 100644
--- a/src/mapi/glapi/gen/Makefile.am
+++ b/src/mapi/glapi/gen/Makefile.am
@@ -132,6 +132,7 @@ API_XML = \
ARB_framebuffer_object.xml \
ARB_geometry_shader4.xml \
ARB_get_program_binary.xml \
+ ARB_gpu_shader_fp64.xml \
ARB_gpu_shader5.xml \
ARB_instanced_arrays.xml \
ARB_internalformat_query.xml \
diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml
index 41b34014f1d..1ceb60a0f0c 100644
--- a/src/mapi/glapi/gen/gl_API.xml
+++ b/src/mapi/glapi/gen/gl_API.xml
@@ -8213,6 +8213,8 @@
<xi:include href="ARB_gpu_shader5.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
+<xi:include href="ARB_gpu_shader_fp64.xml" xmlns:xi="http://www.w3.org/2001/XInclude"/>
+
<category name="GL_ARB_transform_feedback3" number="94">
<enum name="MAX_TRANSFORM_FEEDBACK_BUFFERS" value="0x8E70"/>
<enum name="MAX_VERTEX_STREAMS" value="0x8E71"/>