summaryrefslogtreecommitdiffstats
path: root/src/glsl/ir.h
diff options
context:
space:
mode:
authorJordan Justen <[email protected]>2015-08-17 14:35:44 -0700
committerJordan Justen <[email protected]>2015-09-13 09:53:16 -0700
commit2b6cc0395be4c3eb1c60c0d7a413e368b5ae3dbf (patch)
treeec1d45f1a7a006ae9a7d8403af7ee73bba634df3 /src/glsl/ir.h
parentc4d049f64603d934aed2a75cac86d4a3d4adadb7 (diff)
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 <[email protected]> Cc: Ilia Mirkin <[email protected]> Reviewed-by: Tapani Pälli <[email protected]>
Diffstat (limited to 'src/glsl/ir.h')
-rw-r--r--src/glsl/ir.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/glsl/ir.h b/src/glsl/ir.h
index fce72a2d3c4..f9ddf7442b0 100644
--- a/src/glsl/ir.h
+++ b/src/glsl/ir.h
@@ -2514,6 +2514,9 @@ _mesa_glsl_initialize_variables(exec_list *instructions,
struct _mesa_glsl_parse_state *state);
extern void
+_mesa_glsl_initialize_derived_variables(gl_shader *shader);
+
+extern void
_mesa_glsl_initialize_functions(_mesa_glsl_parse_state *state);
extern void