From d5c8481d577030f21524ab6e0501d75ba401c887 Mon Sep 17 00:00:00 2001 From: Samuel Pitoiset Date: Wed, 7 Sep 2016 18:05:52 +0200 Subject: glsl: add enable flags for ARB_compute_variable_group_size MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This also initializes the default values for the standalone compiler. Signed-off-by: Samuel Pitoiset Reviewed-by: Ian Romanick Reviewed-by: Nicolai Hähnle --- src/compiler/glsl/standalone.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/compiler/glsl/standalone.cpp') diff --git a/src/compiler/glsl/standalone.cpp b/src/compiler/glsl/standalone.cpp index 6b1c2cec849..055c433436a 100644 --- a/src/compiler/glsl/standalone.cpp +++ b/src/compiler/glsl/standalone.cpp @@ -58,6 +58,10 @@ initialize_context(struct gl_context *ctx, gl_api api) ctx->Const.MaxComputeWorkGroupSize[2] = 64; ctx->Const.MaxComputeWorkGroupInvocations = 1024; ctx->Const.MaxComputeSharedMemorySize = 32768; + ctx->Const.MaxComputeVariableGroupSize[0] = 512; + ctx->Const.MaxComputeVariableGroupSize[1] = 512; + ctx->Const.MaxComputeVariableGroupSize[2] = 64; + ctx->Const.MaxComputeVariableGroupInvocations = 512; ctx->Const.Program[MESA_SHADER_COMPUTE].MaxTextureImageUnits = 16; ctx->Const.Program[MESA_SHADER_COMPUTE].MaxUniformComponents = 1024; ctx->Const.Program[MESA_SHADER_COMPUTE].MaxCombinedUniformComponents = 1024; -- cgit v1.2.3