glsl: Plumb through is_parameter to apply_type_qualifier_to_variable()
authorPaul Berry <stereotype441@gmail.com>
Tue, 18 Dec 2012 22:49:34 +0000 (14:49 -0800)
committerPaul Berry <stereotype441@gmail.com>
Tue, 8 Jan 2013 17:09:18 +0000 (09:09 -0800)
commitc33be485c58dace2a691042703f50cc6defe960d
tree7e4bc5e43b8aaa2c5555c9d95e0650ddf901f448
parent4b11b57ab47b98b335a7212080dbccef04542805
glsl: Plumb through is_parameter to apply_type_qualifier_to_variable()

This patch adds logic to allow the ast_to_hir function
apply_type_qualifier_to_variable() to tell whether it is acting on a
variable declaration or a function parameter.  This will allow it to
correctly interpret the meaning of "out" and "in" keywords (which have
different meanings in those two contexts).

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/glsl/ast_to_hir.cpp