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/builtin_variables.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/builtin_variables.cpp')
-rw-r--r-- | src/glsl/builtin_variables.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/builtin_variables.cpp b/src/glsl/builtin_variables.cpp index f96d4895d5f..3e7a84521e9 100644 --- a/src/glsl/builtin_variables.cpp +++ b/src/glsl/builtin_variables.cpp @@ -682,6 +682,10 @@ builtin_variable_generator::generate_constants() } if (state->is_version(430, 0) || state->ARB_compute_shader_enable) { + add_const_ivec3("gl_MaxComputeWorkGroupCount", + state->Const.MaxComputeWorkGroupCount[0], + state->Const.MaxComputeWorkGroupCount[1], + state->Const.MaxComputeWorkGroupCount[2]); add_const_ivec3("gl_MaxComputeWorkGroupSize", state->Const.MaxComputeWorkGroupSize[0], state->Const.MaxComputeWorkGroupSize[1], |