glsl: Make interlock builtins follow same compiler rules as barriers
authorCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Wed, 5 Jun 2019 07:59:11 +0000 (00:59 -0700)
committerCaio Marcelo de Oliveira Filho <caio.oliveira@intel.com>
Mon, 10 Jun 2019 21:29:26 +0000 (14:29 -0700)
commitb7c9fc72fddd76679ca3248dfd0540c69f1790da
tree7732fb30f22ffa8166eadbf4013fe251f6eda314
parentfb2169040aa056220469a620cd24fa4cef145baf
glsl: Make interlock builtins follow same compiler rules as barriers

Generalize the barrier code to provide correct error messages for
other builtins.

Fixes most of piglit compilation tests for
ARB_fragment_shader_interlock.

Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
Reviewed-by: Plamena Manolova <plamena.manolova@intel.com>
src/compiler/glsl/ast_function.cpp