glsl: Bail after reporting an error for non-constant const_in parameters.
authorKenneth Graunke <kenneth@whitecape.org>
Thu, 25 Aug 2011 16:43:41 +0000 (09:43 -0700)
committerDave Airlie <airlied@redhat.com>
Thu, 25 Aug 2011 20:07:42 +0000 (21:07 +0100)
commitc25b4943322ddd31d70d87464fe32be26ac6c858
treeb113b7e49a6dcfc7cb86c9e795208377dcf9738d
parent27395cb5b688d3d255d11c4d766a2699fd1c67d4
glsl: Bail after reporting an error for non-constant const_in parameters.

Otherwise we continue and hit the "Illegal formal parameter mode"
assertion.

Fixes negative compile test texelFetchOffset.frag in piglit.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
src/glsl/ast_function.cpp