glsl: Check that gl_ClipDistance[] is not sized too large.
authorPaul Berry <stereotype441@gmail.com>
Thu, 11 Aug 2011 22:23:33 +0000 (15:23 -0700)
committerPaul Berry <stereotype441@gmail.com>
Thu, 8 Sep 2011 16:37:45 +0000 (09:37 -0700)
commit37bb1c4de2eb2fa80d09b6e8dc8f39814d790e09
treedabb4d638b9989d610a909f74b5412bebc9cbac1
parent93b9758d01e2542ec3c2b8672cca0ae19b257aac
glsl: Check that gl_ClipDistance[] is not sized too large.

Fixes piglit tests
clip-distance-explicit-too-large-with-access.{frag,vert} and
clip-distance-explicit-too-large.{frag,vert}.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ast_to_hir.cpp