glsl: validate restrictions on use of barrier()
authorChris Forbes <chrisf@ijw.co.nz>
Sun, 7 Sep 2014 09:42:50 +0000 (21:42 +1200)
committerMarek Olšák <marek.olsak@amd.com>
Wed, 22 Jul 2015 22:59:28 +0000 (00:59 +0200)
commit8cf72972ce2fc7df83d0572745968bbcb41a8c92
tree007d075aa2287a9d50109a2d6a42e59b9fb4aead
parent799afadf51ad1ff0775a1bf7b4f3954a8d368b09
glsl: validate restrictions on use of barrier()

With the exception of always-taken switch cases (which are
indistinguishable from straight line code in our IR), this
disallows use of the builtin barrier() function in all the
places it may not appear.

Signed-off-by: Chris Forbes <chrisf@ijw.co.nz>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/linker.cpp