summaryrefslogtreecommitdiffstats
path: root/src/mapi/glapi
diff options
context:
space:
mode:
authorDave Airlie <airlied@redhat.com>2015-07-23 10:49:12 +1000
committerDave Airlie <airlied@redhat.com>2015-07-23 17:25:16 +1000
commit24b0e5068348aacabbd3e0012de95d34866e4b99 (patch)
tree5c5aa7922d772bc76777157156e215094af8a18e /src/mapi/glapi
parentcc172fddf3fc37991c6d85f2d8e4f6dc63a62809 (diff)
downloadexternal_mesa3d-24b0e5068348aacabbd3e0012de95d34866e4b99.zip
external_mesa3d-24b0e5068348aacabbd3e0012de95d34866e4b99.tar.gz
external_mesa3d-24b0e5068348aacabbd3e0012de95d34866e4b99.tar.bz2
dispatch_sanity: add shader subroutine to fix make check
Add the shader subroutine to the core only API list, and fixup dispatch_sanity to suit. Acked-by: Kenneth Graunke <kenneth@whitecape.org> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'src/mapi/glapi')
-rw-r--r--src/mapi/glapi/gen/apiexec.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/mapi/glapi/gen/apiexec.py b/src/mapi/glapi/gen/apiexec.py
index b623b44..66bc79a 100644
--- a/src/mapi/glapi/gen/apiexec.py
+++ b/src/mapi/glapi/gen/apiexec.py
@@ -74,6 +74,17 @@ functions = {
# GL_ARB_geometry_shader4, so OpenGL 3.2 is required.
"FramebufferTexture": exec_info(core=32),
+ # OpenGL 4.0 / GL_ARB_shader_subroutines. Mesa only exposes this
+ # extension with core profile.
+ "glGetSubroutineUniformLocation": exec_info(core=31),
+ "glGetSubroutineIndex": exec_info(core=31),
+ "glGetActiveSubroutineUniformiv": exec_info(core=31),
+ "glGetActiveSubroutineUniformName": exec_info(core=31),
+ "glGetActiveSubroutineName": exec_info(core=31),
+ "glUniformSubroutinesuiv": exec_info(core=31),
+ "glGetUniformSubroutineuiv": exec_info(core=31),
+ "glGetProgramStageiv": exec_info(core=31),
+
# OpenGL 4.0 / GL_ARB_gpu_shader_fp64. The extension spec says:
#
# "OpenGL 3.2 and GLSL 1.50 are required."