glsl: Disallow unsized array of atomic_uint
authorIago Toral Quiroga <itoral@igalia.com>
Mon, 11 Sep 2017 12:19:41 +0000 (14:19 +0200)
committerIago Toral Quiroga <itoral@igalia.com>
Tue, 12 Sep 2017 07:16:05 +0000 (09:16 +0200)
commit51bf007d2c27fbad6dac590c72f0fc4860e3fa02
treef9a5e14833e31ac9e3d5a19a673183e5a0b5bd79
parentea314bf812b7c5151c13031dcd08f8517aa59d59
glsl: Disallow unsized array of atomic_uint

This was a bugfix to the spec addressed in OpenGL 4.5 (revision
7 of the spec) and there is a CTS test to check this.

Fixes:
KHR-GL45.shader_atomic_counters.negative-unsized-array

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