glsl: Always strip arrayness in precision_qualifier_allowed
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 13 Jun 2016 22:22:34 +0000 (15:22 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Thu, 16 Jun 2016 16:33:53 +0000 (09:33 -0700)
commit9c872820413f6183db0eb47828a7afcf703f9930
treeed45e48fbbf8d642ebd214bcb283fc8a288d84b9
parentd04f652b757d1c9e53ee338e92d18c4c516c9507
glsl: Always strip arrayness in precision_qualifier_allowed

Previously some callers of precision_qualifier_allowed would strip the
arrayness from the type and some would not.  As a result, some places
would not notice that float[6], for example, needed a precision
qualifier.

Fixes the new piglit test no-default-float-array-precision.frag.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=96358
Cc: "12.0" <mesa-stable@lists.freedesktop.org>
Cc: Gregory Hainaut <gregory.hainaut@gmail.com>
Cc: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Timothy Arceri <timothy.arceri@collabora.com>
src/compiler/glsl/ast_to_hir.cpp