diff options
author | Paul Berry <[email protected]> | 2014-01-08 01:42:58 -0800 |
---|---|---|
committer | Paul Berry <[email protected]> | 2014-02-05 09:03:08 -0800 |
commit | 0398b69954eb8e73e9ae663ce200170ff70d216d (patch) | |
tree | fb4bf1c166e4fa1b0d6f8a1e4533b58689f9836b /src/glsl/main.cpp | |
parent | c85c50997f073993b86c694dda7c18bbaca30bbf (diff) |
mesa/cs: Implement MAX_COMPUTE_WORK_GROUP_COUNT constant.
v2: Document that the 3-element array MaxComputeWorkGroupCount is
indexed by dimension.
Reviewed-by: Matt Turner <[email protected]>
Reviewed-by: Jordan Justen <[email protected]>
Diffstat (limited to 'src/glsl/main.cpp')
-rw-r--r-- | src/glsl/main.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/main.cpp b/src/glsl/main.cpp index 94bc1cc5e91..5ea57d53a88 100644 --- a/src/glsl/main.cpp +++ b/src/glsl/main.cpp @@ -50,6 +50,9 @@ initialize_context(struct gl_context *ctx, gl_api api) */ ctx->Const.GLSLVersion = glsl_version; ctx->Extensions.ARB_ES3_compatibility = true; + ctx->Const.MaxComputeWorkGroupCount[0] = 65535; + ctx->Const.MaxComputeWorkGroupCount[1] = 65535; + ctx->Const.MaxComputeWorkGroupCount[2] = 65535; ctx->Const.MaxComputeWorkGroupSize[0] = 1024; ctx->Const.MaxComputeWorkGroupSize[1] = 1024; ctx->Const.MaxComputeWorkGroupSize[2] = 64; |