summaryrefslogtreecommitdiffstats
path: root/src/glsl/builtin_functions.cpp
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2015-08-17 12:30:25 -0700
committerJordan Justen <[email protected]>2015-09-13 09:53:16 -0700
commit34e187ec38cee78fbc0e1d1a09a99160fbdf7a9f (patch)
tree3dcccb76e970a1eb1b9992c9b6460d17b38eaf30 /src/glsl/builtin_functions.cpp
parentc5743a5d7fa62a339222ceb96d568a525d77fe0c (diff)
glsl/cs: Don't strip gl_GlobalInvocationID and dependencies
We lower 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 We need to set this variable in main(), even if gl_GlobalInvocationID is not referenced by the shader. (It may be used by a linked shader.) Therefore, we can't eliminate these as dead variables. Signed-off-by: Jordan Justen <[email protected]> Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/glsl/builtin_functions.cpp')
0 files changed, 0 insertions, 0 deletions