glsl: do not raise unitialized variable warnings on builtins/reserved GL variables
authorAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 1 Apr 2016 07:11:15 +0000 (09:11 +0200)
committerAlejandro Piñeiro <apinheiro@igalia.com>
Fri, 1 Apr 2016 07:54:09 +0000 (09:54 +0200)
commitcd7d631c71bb1342a6607a193918ccb3289c0bbf
tree7e51f41641cfa530f48be95c75c2bd419dcfe0cb
parentdf03be196abc34bdf29ff1119099e1477a991ad3
glsl: do not raise unitialized variable warnings on builtins/reserved GL variables

Needed because not all the built-in variables are marked as system
values, so they still have the mode ir_var_auto. Right now it fixes
raising the warning when gl_GlobalInvocationID and
gl_LocalInvocationIndex are used.

v2: use is_gl_identifier instead of filtering for some names (Ilia
    Mirkin)

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/compiler/glsl/ast_to_hir.cpp