glsl: allow precision qualifier on sampler arrays
authorFrank Henigman <fjhenigman@google.com>
Fri, 22 Aug 2014 21:23:04 +0000 (17:23 -0400)
committerTapani Pälli <tapani.palli@intel.com>
Thu, 11 Sep 2014 07:41:00 +0000 (10:41 +0300)
commit9c707d065af569af4d298e93987603fe873b05d6
treef53b973ccfabdac39d545ab5665716138d391e98
parent096ee4c3b00cf1038830ee5994dd27e9963c24e8
glsl: allow precision qualifier on sampler arrays

If a precision qualifer is allowed on type T, it should be allowed
on an array of T.  Refactor the check to ensure this is the case.

(Fixes failures in WebGL conformance test 'gl-min-textures')

Signed-off-by: Frank Henigman <fjhenigman@google.com>
Reviewed-by: Anuj Phogat <anuj.phogat@gmail.com>
Reviewed-by: Tapani Pälli <tapani.palli@intel.com>
src/glsl/ast_to_hir.cpp