diff options
author | Jordan Justen <jordan.l.justen@intel.com> | 2015-08-17 16:32:42 -0700 |
---|---|---|
committer | Jordan Justen <jordan.l.justen@intel.com> | 2015-09-13 09:53:17 -0700 |
commit | c4cf824658da283cf350fd6833d50dff9de4a1ad (patch) | |
tree | c12d06d47947784d07b8e5ff1c5a7c06153f9997 /src/gallium/auxiliary | |
parent | 6823e12d5aa4646fc8ef0e32455104ba47f80a38 (diff) |
glsl/cs: Initialize gl_LocalInvocationIndex in main()
We initialize gl_LocalInvocationIndex based on the extension spec
formula:
gl_LocalInvocationIndex =
gl_LocalInvocationID.z * gl_WorkGroupSize.x * gl_WorkGroupSize.y +
gl_LocalInvocationID.y * gl_WorkGroupSize.x +
gl_LocalInvocationID.x;
https://www.opengl.org/registry/specs/ARB/compute_shader.txt
Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Diffstat (limited to 'src/gallium/auxiliary')
0 files changed, 0 insertions, 0 deletions