diff options
author | Jordan Justen <[email protected]> | 2015-08-17 15:49:44 -0700 |
---|---|---|
committer | Jordan Justen <[email protected]> | 2015-09-13 09:53:16 -0700 |
commit | 6823e12d5aa4646fc8ef0e32455104ba47f80a38 (patch) | |
tree | 1a49041f7ab7e32a4a1884b762f92f8afb727fb4 /src/mesa/x86-64 | |
parent | 2b6cc0395be4c3eb1c60c0d7a413e368b5ae3dbf (diff) |
glsl/cs: Exclude gl_LocalInvocationIndex from builtin variable stripping
We lower 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
We need to set this variable in main(), even if gl_LocalInvocationIndex
is not referenced by the shader. (It may be used by a linked shader.)
Therefore, we can't eliminate it as a dead variable.
Signed-off-by: Jordan Justen <[email protected]>
Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/mesa/x86-64')
0 files changed, 0 insertions, 0 deletions