diff options
author | Kenneth Graunke <[email protected]> | 2012-03-28 19:24:45 -0700 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2012-04-02 14:15:32 -0700 |
commit | ac0f8bae8d39ca9f5e873ba8411472e2962890cd (patch) | |
tree | ef896e5e6f7fa348aa068fecd5fb07bd238da187 /src/glsl/ir_hierarchical_visitor.cpp | |
parent | 909e8899671a45bcc865fe303a8cb697a25634aa (diff) |
glsl: Combine AST-level and IR-level parameter mode checking loops.
generate_call() and ast_function_expression::hir() both tried to verify
that 'out' and 'inout' parameters used l-values. Irritatingly, it
turned out that this was not redundant; both checks caught -some- cases.
This patch combines the two into a single "complete" function that does
all the parameter mode checking. It also adds a comment clarifying why
AST-level checking is necessary in the first place.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'src/glsl/ir_hierarchical_visitor.cpp')
0 files changed, 0 insertions, 0 deletions