mesa: enable ARB_gpu_shader_int64 in compat profile
authorTapani Pälli <tapani.palli@intel.com>
Fri, 25 Oct 2019 08:06:05 +0000 (11:06 +0300)
committerTapani Pälli <tapani.palli@intel.com>
Wed, 30 Oct 2019 12:37:27 +0000 (14:37 +0200)
Signed-off-by: Tapani Pälli <tapani.palli@intel.com>
Acked-by: Marek Olšák <marek.olsak@amd.com>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mapi/glapi/gen/apiexec.py
src/mesa/main/extensions_table.h
src/mesa/main/tests/dispatch_sanity.cpp

index 26adb00ae21a7bbb26789dd45ec67a5eaf68d9d3..966e66a6c02f697e9d74eff24b2d5f92f804a9d4 100644 (file)
@@ -254,44 +254,43 @@ functions = {
     "GetQueryBufferObjecti64v": exec_info(compatibility=31, core=31),
     "GetQueryBufferObjectui64v": exec_info(compatibility=31, core=31),
 
-    # GL_ARB_gpu_shader_int64 - nominally requires OpenGL 4.0, and Mesa
-    # only supports 4.0 in core profile.
-    "Uniform1i64ARB": exec_info(core=31),
-    "Uniform2i64ARB": exec_info(core=31),
-    "Uniform3i64ARB": exec_info(core=31),
-    "Uniform4i64ARB": exec_info(core=31),
-    "Uniform1i64vARB": exec_info(core=31),
-    "Uniform2i64vARB": exec_info(core=31),
-    "Uniform3i64vARB": exec_info(core=31),
-    "Uniform4i64vARB": exec_info(core=31),
-    "Uniform1ui64ARB": exec_info(core=31),
-    "Uniform2ui64ARB": exec_info(core=31),
-    "Uniform3ui64ARB": exec_info(core=31),
-    "Uniform4ui64ARB": exec_info(core=31),
-    "Uniform1ui64vARB": exec_info(core=31),
-    "Uniform2ui64vARB": exec_info(core=31),
-    "Uniform3ui64vARB": exec_info(core=31),
-    "Uniform4ui64vARB": exec_info(core=31),
-    "GetUniformi64vARB": exec_info(core=31),
-    "GetUniformui64vARB": exec_info(core=31),
-    "GetnUniformi64vARB": exec_info(core=31),
-    "GetnUniformui64vARB": exec_info(core=31),
-    "ProgramUniform1i64ARB": exec_info(core=31),
-    "ProgramUniform2i64ARB": exec_info(core=31),
-    "ProgramUniform3i64ARB": exec_info(core=31),
-    "ProgramUniform4i64ARB": exec_info(core=31),
-    "ProgramUniform1i64vARB": exec_info(core=31),
-    "ProgramUniform2i64vARB": exec_info(core=31),
-    "ProgramUniform3i64vARB": exec_info(core=31),
-    "ProgramUniform4i64vARB": exec_info(core=31),
-    "ProgramUniform1ui64ARB": exec_info(core=31),
-    "ProgramUniform2ui64ARB": exec_info(core=31),
-    "ProgramUniform3ui64ARB": exec_info(core=31),
-    "ProgramUniform4ui64ARB": exec_info(core=31),
-    "ProgramUniform1ui64vARB": exec_info(core=31),
-    "ProgramUniform2ui64vARB": exec_info(core=31),
-    "ProgramUniform3ui64vARB": exec_info(core=31),
-    "ProgramUniform4ui64vARB": exec_info(core=31),
+    # GL_ARB_gpu_shader_int64 - nominally requires OpenGL 4.0
+    "Uniform1i64ARB": exec_info(compatibility=40, core=31),
+    "Uniform2i64ARB": exec_info(compatibility=40, core=31),
+    "Uniform3i64ARB": exec_info(compatibility=40, core=31),
+    "Uniform4i64ARB": exec_info(compatibility=40, core=31),
+    "Uniform1i64vARB": exec_info(compatibility=40, core=31),
+    "Uniform2i64vARB": exec_info(compatibility=40, core=31),
+    "Uniform3i64vARB": exec_info(compatibility=40, core=31),
+    "Uniform4i64vARB": exec_info(compatibility=40, core=31),
+    "Uniform1ui64ARB": exec_info(compatibility=40, core=31),
+    "Uniform2ui64ARB": exec_info(compatibility=40, core=31),
+    "Uniform3ui64ARB": exec_info(compatibility=40, core=31),
+    "Uniform4ui64ARB": exec_info(compatibility=40, core=31),
+    "Uniform1ui64vARB": exec_info(compatibility=40, core=31),
+    "Uniform2ui64vARB": exec_info(compatibility=40, core=31),
+    "Uniform3ui64vARB": exec_info(compatibility=40, core=31),
+    "Uniform4ui64vARB": exec_info(compatibility=40, core=31),
+    "GetUniformi64vARB": exec_info(compatibility=40, core=31),
+    "GetUniformui64vARB": exec_info(compatibility=40, core=31),
+    "GetnUniformi64vARB": exec_info(compatibility=40, core=31),
+    "GetnUniformui64vARB": exec_info(compatibility=40, core=31),
+    "ProgramUniform1i64ARB": exec_info(compatibility=40, core=31),
+    "ProgramUniform2i64ARB": exec_info(compatibility=40, core=31),
+    "ProgramUniform3i64ARB": exec_info(compatibility=40, core=31),
+    "ProgramUniform4i64ARB": exec_info(compatibility=40, core=31),
+    "ProgramUniform1i64vARB": exec_info(compatibility=40, core=31),
+    "ProgramUniform2i64vARB": exec_info(compatibility=40, core=31),
+    "ProgramUniform3i64vARB": exec_info(compatibility=40, core=31),
+    "ProgramUniform4i64vARB": exec_info(compatibility=40, core=31),
+    "ProgramUniform1ui64ARB": exec_info(compatibility=40, core=31),
+    "ProgramUniform2ui64ARB": exec_info(compatibility=40, core=31),
+    "ProgramUniform3ui64ARB": exec_info(compatibility=40, core=31),
+    "ProgramUniform4ui64ARB": exec_info(compatibility=40, core=31),
+    "ProgramUniform1ui64vARB": exec_info(compatibility=40, core=31),
+    "ProgramUniform2ui64vARB": exec_info(compatibility=40, core=31),
+    "ProgramUniform3ui64vARB": exec_info(compatibility=40, core=31),
+    "ProgramUniform4ui64vARB": exec_info(compatibility=40, core=31),
 
     # GL_ARB_bindless_texture
     "GetVertexAttribLui64vARB": exec_info(compatibility=30, core=31),
index 991adfc909867178342d82dbc398afee96c65869..9b056c513a2f10b7faa57e934e9c7721a478e154 100644 (file)
@@ -84,7 +84,7 @@ EXT(ARB_get_texture_sub_image               , dummy_true
 EXT(ARB_gl_spirv                            , ARB_gl_spirv                           ,  x,  GLC,  x ,  x , 2016)
 EXT(ARB_gpu_shader5                         , ARB_gpu_shader5                        , GLL, GLC,  x ,  x , 2010)
 EXT(ARB_gpu_shader_fp64                     , ARB_gpu_shader_fp64                    ,  32, GLC,  x ,  x , 2010)
-EXT(ARB_gpu_shader_int64                    , ARB_gpu_shader_int64                   ,  , GLC,  x ,  x , 2015)
+EXT(ARB_gpu_shader_int64                    , ARB_gpu_shader_int64                   ,  40, GLC,  x ,  x , 2015)
 EXT(ARB_half_float_pixel                    , dummy_true                             , GLL, GLC,  x ,  x , 2003)
 EXT(ARB_half_float_vertex                   , ARB_half_float_vertex                  , GLL, GLC,  x ,  x , 2008)
 EXT(ARB_indirect_parameters                 , ARB_indirect_parameters                , GLL, GLC,  x ,  x , 2013)
index 5f3e25a2c5b9039cc3c72191cff16e850c6725a7..3c501ce4a33f827d427d7e684388b566b7876014 100644 (file)
@@ -1384,6 +1384,44 @@ const struct function common_desktop_functions_possible[] = {
    { "glFramebufferParameteriMESA", 43, -1 },
    { "glGetFramebufferParameterivMESA", 43, -1 },
 
+   /* GL_ARB_gpu_shader_int64 */
+   { "glUniform1i64ARB", 40, -1 },
+   { "glUniform2i64ARB", 40, -1 },
+   { "glUniform3i64ARB", 40, -1 },
+   { "glUniform4i64ARB", 40, -1 },
+   { "glUniform1ui64ARB", 40, -1 },
+   { "glUniform2ui64ARB", 40, -1 },
+   { "glUniform3ui64ARB", 40, -1 },
+   { "glUniform4ui64ARB", 40, -1 },
+   { "glUniform1i64vARB", 40, -1 },
+   { "glUniform2i64vARB", 40, -1 },
+   { "glUniform3i64vARB", 40, -1 },
+   { "glUniform4i64vARB", 40, -1 },
+   { "glUniform1ui64vARB", 40, -1 },
+   { "glUniform2ui64vARB", 40, -1 },
+   { "glUniform3ui64vARB", 40, -1 },
+   { "glUniform4ui64vARB", 40, -1 },
+   { "glGetUniformi64vARB", 40, -1 },
+   { "glGetUniformui64vARB", 40, -1 },
+   { "glGetnUniformi64vARB", 40, -1 },
+   { "glGetnUniformui64vARB", 40, -1 },
+   { "glProgramUniform1i64ARB", 40, -1 },
+   { "glProgramUniform2i64ARB", 40, -1 },
+   { "glProgramUniform3i64ARB", 40, -1 },
+   { "glProgramUniform4i64ARB", 40, -1 },
+   { "glProgramUniform1ui64ARB", 40, -1 },
+   { "glProgramUniform2ui64ARB", 40, -1 },
+   { "glProgramUniform3ui64ARB", 40, -1 },
+   { "glProgramUniform4ui64ARB", 40, -1 },
+   { "glProgramUniform1i64vARB", 40, -1 },
+   { "glProgramUniform2i64vARB", 40, -1 },
+   { "glProgramUniform3i64vARB", 40, -1 },
+   { "glProgramUniform4i64vARB", 40, -1 },
+   { "glProgramUniform1ui64vARB", 40, -1 },
+   { "glProgramUniform2ui64vARB", 40, -1 },
+   { "glProgramUniform3ui64vARB", 40, -1 },
+   { "glProgramUniform4ui64vARB", 40, -1 },
+
    { NULL, 0, -1 }
 };
 
@@ -1870,44 +1908,6 @@ const struct function gl_core_functions_possible[] = {
    /* GL_ARB_ES3_2_compatibility */
    { "glPrimitiveBoundingBoxARB", 45, -1 },
 
-   /* GL_ARB_gpu_shader_int64 */
-   { "glUniform1i64ARB", 45, -1 },
-   { "glUniform2i64ARB", 45, -1 },
-   { "glUniform3i64ARB", 45, -1 },
-   { "glUniform4i64ARB", 45, -1 },
-   { "glUniform1ui64ARB", 45, -1 },
-   { "glUniform2ui64ARB", 45, -1 },
-   { "glUniform3ui64ARB", 45, -1 },
-   { "glUniform4ui64ARB", 45, -1 },
-   { "glUniform1i64vARB", 45, -1 },
-   { "glUniform2i64vARB", 45, -1 },
-   { "glUniform3i64vARB", 45, -1 },
-   { "glUniform4i64vARB", 45, -1 },
-   { "glUniform1ui64vARB", 45, -1 },
-   { "glUniform2ui64vARB", 45, -1 },
-   { "glUniform3ui64vARB", 45, -1 },
-   { "glUniform4ui64vARB", 45, -1 },
-   { "glGetUniformi64vARB", 45, -1 },
-   { "glGetUniformui64vARB", 45, -1 },
-   { "glGetnUniformi64vARB", 45, -1 },
-   { "glGetnUniformui64vARB", 45, -1 },
-   { "glProgramUniform1i64ARB", 45, -1 },
-   { "glProgramUniform2i64ARB", 45, -1 },
-   { "glProgramUniform3i64ARB", 45, -1 },
-   { "glProgramUniform4i64ARB", 45, -1 },
-   { "glProgramUniform1ui64ARB", 45, -1 },
-   { "glProgramUniform2ui64ARB", 45, -1 },
-   { "glProgramUniform3ui64ARB", 45, -1 },
-   { "glProgramUniform4ui64ARB", 45, -1 },
-   { "glProgramUniform1i64vARB", 45, -1 },
-   { "glProgramUniform2i64vARB", 45, -1 },
-   { "glProgramUniform3i64vARB", 45, -1 },
-   { "glProgramUniform4i64vARB", 45, -1 },
-   { "glProgramUniform1ui64vARB", 45, -1 },
-   { "glProgramUniform2ui64vARB", 45, -1 },
-   { "glProgramUniform3ui64vARB", 45, -1 },
-   { "glProgramUniform4ui64vARB", 45, -1 },
-
    /* GL_ARB_gl_spirv */
    { "glSpecializeShaderARB", 45, -1 },