mesa: enable ARB_shader_subroutine in compat profile
authorTimothy Arceri <tarceri@itsqueeze.com>
Wed, 20 Jun 2018 00:55:34 +0000 (10:55 +1000)
committerTimothy Arceri <tarceri@itsqueeze.com>
Fri, 29 Jun 2018 22:38:33 +0000 (08:38 +1000)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mapi/glapi/gen/apiexec.py
src/mesa/main/extensions_table.h
src/mesa/main/tests/dispatch_sanity.cpp

index 00c801712740d89b65b4500594f8be9e9b39a9a8..e69c6b4df1672a09fd92f190ad99d489743189a3 100644 (file)
@@ -73,14 +73,14 @@ functions = {
 
     # OpenGL 4.0 / GL_ARB_shader_subroutines. Mesa only exposes this
     # extension with core profile.
-    "GetSubroutineUniformLocation": exec_info(core=31),
-    "GetSubroutineIndex": exec_info(core=31),
-    "GetActiveSubroutineUniformiv": exec_info(core=31),
-    "GetActiveSubroutineUniformName": exec_info(core=31),
-    "GetActiveSubroutineName": exec_info(core=31),
-    "UniformSubroutinesuiv": exec_info(core=31),
-    "GetUniformSubroutineuiv": exec_info(core=31),
-    "GetProgramStageiv": exec_info(core=31),
+    "GetSubroutineUniformLocation": exec_info(compatibility=31, core=31),
+    "GetSubroutineIndex": exec_info(compatibility=31, core=31),
+    "GetActiveSubroutineUniformiv": exec_info(compatibility=31, core=31),
+    "GetActiveSubroutineUniformName": exec_info(compatibility=31, core=31),
+    "GetActiveSubroutineName": exec_info(compatibility=31, core=31),
+    "UniformSubroutinesuiv": exec_info(compatibility=31, core=31),
+    "GetUniformSubroutineuiv": exec_info(compatibility=31, core=31),
+    "GetProgramStageiv": exec_info(compatibility=31, core=31),
 
     # OpenGL 4.0 / GL_ARB_gpu_shader_fp64.  The extension spec says:
     #
index 5fe2e88fe9897872e1c85f8dab36c7aaa7d28000..11345febe2e4a67aaea4dab644ca2fb5846108c5 100644 (file)
@@ -123,7 +123,7 @@ EXT(ARB_shader_objects                      , dummy_true
 EXT(ARB_shader_precision                    , ARB_shader_precision                   , GLL, GLC,  x ,  x , 2010)
 EXT(ARB_shader_stencil_export               , ARB_shader_stencil_export              , GLL, GLC,  x ,  x , 2009)
 EXT(ARB_shader_storage_buffer_object        , ARB_shader_storage_buffer_object       , GLL, GLC,  x ,  x , 2012)
-EXT(ARB_shader_subroutine                   , dummy_true                             ,  , GLC,  x ,  x , 2010)
+EXT(ARB_shader_subroutine                   , dummy_true                             ,  31, GLC,  x ,  x , 2010)
 EXT(ARB_shader_texture_image_samples        , ARB_shader_texture_image_samples       , GLL, GLC,  x ,  x , 2014)
 EXT(ARB_shader_texture_lod                  , ARB_shader_texture_lod                 , GLL, GLC,  x ,  x , 2009)
 EXT(ARB_shader_viewport_layer_array         , ARB_shader_viewport_layer_array        ,  x , GLC,  x ,  x , 2015)
index 6b319d8b030dbf03543865ebb284e11f7ea9d729..ed99f1a1957882b0cbc7575142194214a99c3896 100644 (file)
@@ -575,6 +575,15 @@ const struct function common_desktop_functions_possible[] = {
    { "glBlendFunci", 40, -1 },
    { "glBlendFuncSeparatei", 40, -1 },
 
+   { "glGetSubroutineUniformLocation", 40, -1 },
+   { "glGetSubroutineIndex", 40, -1 },
+   { "glGetActiveSubroutineUniformiv", 40, -1 },
+   { "glGetActiveSubroutineUniformName", 40, -1 },
+   { "glGetActiveSubroutineName", 40, -1 },
+   { "glUniformSubroutinesuiv", 40, -1 },
+   { "glGetUniformSubroutineuiv", 40, -1 },
+   { "glGetProgramStageiv", 40, -1 },
+
    { "glUniform1d", 40, -1 },
    { "glUniform2d", 40, -1 },
    { "glUniform3d", 40, -1 },
@@ -1547,16 +1556,6 @@ const struct function gl_core_functions_possible[] = {
    /* GL 3.2 */
    { "glFramebufferTexture", 32, -1 },
 
-   /* GL 4.0 */
-   { "glGetSubroutineUniformLocation", 40, -1 },
-   { "glGetSubroutineIndex", 40, -1 },
-   { "glGetActiveSubroutineUniformiv", 40, -1 },
-   { "glGetActiveSubroutineUniformName", 40, -1 },
-   { "glGetActiveSubroutineName", 40, -1 },
-   { "glUniformSubroutinesuiv", 40, -1 },
-   { "glGetUniformSubroutineuiv", 40, -1 },
-   { "glGetProgramStageiv", 40, -1 },
-
    /* GL 4.3 */
    { "glIsRenderbuffer", 43, -1 },
    { "glBindRenderbuffer", 43, -1 },