glsl: Extract explicit location code from apply_type_qualifier_to_variable
authorIan Romanick <ian.d.romanick@intel.com>
Wed, 25 Sep 2013 17:48:18 +0000 (10:48 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Wed, 30 Oct 2013 20:49:29 +0000 (13:49 -0700)
commit8f00a77fbc611f472ffda7a8181950519cc71ccb
treee59dddf085c13ac88b290f698de85c3e79da173c
parent0059d1948ef3b7f045e436c06e0c6cb68b24d255
glsl: Extract explicit location code from apply_type_qualifier_to_variable

Future patches will add some extra code to this path, and some of that
code will want to exit from the explicit location code early.

v2: Change a geometry shader "break" to a "return" so that try to apply
a bogus geometry shader location qualifier (which could cause cascading
errors).  Suggested by Paul.

Signed-off-by: Ian Romanick <ian.d.romanick@intel.com>
Reviewed-by: Paul Berry <stereotype441@gmail.com>
src/glsl/ast_to_hir.cpp