diff options
author | Kenneth Graunke <[email protected]> | 2011-11-09 03:01:54 -0800 |
---|---|---|
committer | Kenneth Graunke <[email protected]> | 2011-11-14 17:18:03 -0800 |
commit | cdc94082664c329e6c55cf6053893360946275bf (patch) | |
tree | 3886b620ac3f82bba0dd1c07ea5d5706d4ea820d /configs/hpux10 | |
parent | 861d0a5e12b1baa31211cb8aff983b8fb9b97482 (diff) |
glsl: Split code to generate an ir_call out from match_function_by_name.
match_function_by_name performs two fairly separate tasks:
1. Hunt down the appropriate ir_function_signature for the callee.
2. Generate the actual ir_call (assuming we found the callee).
Both of these are complicated. The first has to handle exact/inexact
matches, lazy importing of built-in prototypes, different scoping rules
for 1.10, 1.20+, and ES. Not to mention printing a user-friendly error
message with pretty-printed "maybe you meant this" candidate signatures.
The second has to deal with void/non-void functions, pre-call implicit
conversions for "in" parmeters, and post-call "out" call conversions.
Trying to do both in one function is just too unwieldy. Time to split.
This patch purely moves the code to generate an ir_call into a separate
function and reindents it. Otherwise, the code is identical.
Signed-off-by: Kenneth Graunke <[email protected]>
Reviewed-by: Paul Berry <[email protected]>
Diffstat (limited to 'configs/hpux10')
0 files changed, 0 insertions, 0 deletions