glsl: Reject illegal qualifiers on atomic counter uniforms.
authorKenneth Graunke <kenneth@whitecape.org>
Mon, 11 Apr 2016 05:50:05 +0000 (22:50 -0700)
committerKenneth Graunke <kenneth@whitecape.org>
Tue, 12 Apr 2016 21:06:42 +0000 (14:06 -0700)
commite303e88a9c86ce9b08c34919982729bf234fe995
tree7ce039cbdbf7d35d7c1747ea9e153c06fd836b2f
parent929e44099f83acee74d07eb3e33a3c0d22f8bc6b
glsl: Reject illegal qualifiers on atomic counter uniforms.

This fixes

dEQP-GLES31.functional.uniform_location.negative.atomic_fragment
dEQP-GLES31.functional.uniform_location.negative.atomic_vertex

Both of which have lines like

layout(location = 3, binding = 0, offset = 0) uniform atomic_uint uni0;

The ARB_explicit_uniform_location spec makes a very tangential mention
regarding atomic counters, but location isn't something that makes sense
with them.

Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/compiler/glsl/ast_to_hir.cpp