glsl/cs: Initialize gl_GlobalInvocationID in main()
authorJordan Justen <jordan.l.justen@intel.com>
Mon, 17 Aug 2015 21:35:44 +0000 (14:35 -0700)
committerJordan Justen <jordan.l.justen@intel.com>
Sun, 13 Sep 2015 16:53:16 +0000 (09:53 -0700)
commit2b6cc0395be4c3eb1c60c0d7a413e368b5ae3dbf
treeec1d45f1a7a006ae9a7d8403af7ee73bba634df3
parentc4d049f64603d934aed2a75cac86d4a3d4adadb7
glsl/cs: Initialize gl_GlobalInvocationID in main()

We initialize gl_GlobalInvocationID based on the extension spec
formula:

    gl_GlobalInvocationID =
        gl_WorkGroupID * gl_WorkGroupSize + gl_LocalInvocationID

https://www.opengl.org/registry/specs/ARB/compute_shader.txt

Signed-off-by: Jordan Justen <jordan.l.justen@intel.com>
Cc: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/glsl/builtin_variables.cpp
src/glsl/glsl_parser_extras.cpp
src/glsl/ir.h