summaryrefslogtreecommitdiffstats
path: root/src/glsl/standalone_scaffolding.cpp
diff options
context:
space:
mode:
authorPaul Berry <stereotype441@gmail.com>2014-01-06 15:11:40 -0800
committerPaul Berry <stereotype441@gmail.com>2014-02-05 09:02:30 -0800
commitc85c50997f073993b86c694dda7c18bbaca30bbf (patch)
treee69f338c0fac2c9bf9151cc3c2091f5ed3ac4535 /src/glsl/standalone_scaffolding.cpp
parent347dde82e65663562d6d2930bf861ec8c8079362 (diff)
downloadexternal_mesa3d-c85c50997f073993b86c694dda7c18bbaca30bbf.zip
external_mesa3d-c85c50997f073993b86c694dda7c18bbaca30bbf.tar.gz
external_mesa3d-c85c50997f073993b86c694dda7c18bbaca30bbf.tar.bz2
mesa/cs: Implement MAX_COMPUTE_WORK_GROUP_INVOCATIONS constant.
Reviewed-by: Matt Turner <mattst88@gmail.com> v2: Use CONTEXT_INT rather than CONTEXT_ENUM. Reviewed-by: Jordan Justen <jordan.l.justen@intel.com>
Diffstat (limited to 'src/glsl/standalone_scaffolding.cpp')
-rw-r--r--src/glsl/standalone_scaffolding.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/glsl/standalone_scaffolding.cpp b/src/glsl/standalone_scaffolding.cpp
index 748d7e9..475fbd8 100644
--- a/src/glsl/standalone_scaffolding.cpp
+++ b/src/glsl/standalone_scaffolding.cpp
@@ -144,6 +144,7 @@ void initialize_context_to_defaults(struct gl_context *ctx, gl_api api)
ctx->Const.MaxComputeWorkGroupSize[0] = 1024;
ctx->Const.MaxComputeWorkGroupSize[1] = 1024;
ctx->Const.MaxComputeWorkGroupSize[2] = 64;
+ ctx->Const.MaxComputeWorkGroupInvocations = 1024;
ctx->Const.Program[MESA_SHADER_COMPUTE].MaxTextureImageUnits = 16;
ctx->Const.Program[MESA_SHADER_COMPUTE].MaxUniformComponents = 1024;
ctx->Const.Program[MESA_SHADER_COMPUTE].MaxInputComponents = 0; /* not used */