From a063f3084acfaf9a63ab8af004d94c592b19b8a0 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Tue, 6 Sep 2016 16:23:58 +0200 Subject: [PATCH] glapi: add entry points for GL_ARB_compute_variable_group_size MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit v2: - correctly sort that new extension (Ian) - fix up the comment (Ian) Signed-off-by: Samuel Pitoiset Reviewed-by: Ian Romanick Reviewed-by: Nicolai Hähnle --- .../glapi/gen/ARB_compute_variable_group_size.xml | 25 ++++++++++++++++++++++ src/mapi/glapi/gen/Makefile.am | 1 + src/mapi/glapi/gen/gl_API.xml | 4 +++- src/mesa/main/compute.c | 8 +++++++ src/mesa/main/compute.h | 5 +++++ src/mesa/main/tests/dispatch_sanity.cpp | 3 +++ 6 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 src/mapi/glapi/gen/ARB_compute_variable_group_size.xml diff --git a/src/mapi/glapi/gen/ARB_compute_variable_group_size.xml b/src/mapi/glapi/gen/ARB_compute_variable_group_size.xml new file mode 100644 index 0000000..b21c52f --- /dev/null +++ b/src/mapi/glapi/gen/ARB_compute_variable_group_size.xml @@ -0,0 +1,25 @@ + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/mapi/glapi/gen/Makefile.am b/src/mapi/glapi/gen/Makefile.am index ba5d144..bd51157 100644 --- a/src/mapi/glapi/gen/Makefile.am +++ b/src/mapi/glapi/gen/Makefile.am @@ -120,6 +120,7 @@ API_XML = \ ARB_color_buffer_float.xml \ ARB_compressed_texture_pixel_storage.xml \ ARB_compute_shader.xml \ + ARB_compute_variable_group_size.xml \ ARB_copy_buffer.xml \ ARB_copy_image.xml \ ARB_debug_output.xml \ diff --git a/src/mapi/glapi/gen/gl_API.xml b/src/mapi/glapi/gen/gl_API.xml index 17c59db..5998ccf 100644 --- a/src/mapi/glapi/gen/gl_API.xml +++ b/src/mapi/glapi/gen/gl_API.xml @@ -8254,7 +8254,9 @@ - + + + diff --git a/src/mesa/main/compute.c b/src/mesa/main/compute.c index b71430f..b052bae 100644 --- a/src/mesa/main/compute.c +++ b/src/mesa/main/compute.c @@ -60,3 +60,11 @@ _mesa_DispatchComputeIndirect(GLintptr indirect) ctx->Driver.DispatchComputeIndirect(ctx, indirect); } + +void GLAPIENTRY +_mesa_DispatchComputeGroupSizeARB(GLuint num_groups_x, GLuint num_groups_y, + GLuint num_groups_z, GLuint group_size_x, + GLuint group_size_y, GLuint group_size_z) +{ + +} diff --git a/src/mesa/main/compute.h b/src/mesa/main/compute.h index 0cc034f..8018bbb 100644 --- a/src/mesa/main/compute.h +++ b/src/mesa/main/compute.h @@ -35,4 +35,9 @@ _mesa_DispatchCompute(GLuint num_groups_x, extern void GLAPIENTRY _mesa_DispatchComputeIndirect(GLintptr indirect); +extern void GLAPIENTRY +_mesa_DispatchComputeGroupSizeARB(GLuint num_groups_x, GLuint num_groups_y, + GLuint num_groups_z, GLuint group_size_x, + GLuint group_size_y, GLuint group_size_z); + #endif diff --git a/src/mesa/main/tests/dispatch_sanity.cpp b/src/mesa/main/tests/dispatch_sanity.cpp index 0d3b6ab..3fdd80a 100644 --- a/src/mesa/main/tests/dispatch_sanity.cpp +++ b/src/mesa/main/tests/dispatch_sanity.cpp @@ -942,6 +942,9 @@ const struct function common_desktop_functions_possible[] = { { "glDispatchCompute", 43, -1 }, { "glDispatchComputeIndirect", 43, -1 }, + /* GL_ARB_compute_variable_group_size */ + { "glDispatchComputeGroupSizeARB", 43, -1 }, + /* GL_EXT_polygon_offset_clamp */ { "glPolygonOffsetClampEXT", 11, -1 }, -- 2.7.4