glsl: Clarify ir_function::matching_sigature()
authorChad Versace <chad@chad-versace.us>
Wed, 27 Jul 2011 19:37:51 +0000 (12:37 -0700)
committerChad Versace <chad@chad-versace.us>
Sat, 30 Jul 2011 14:27:38 +0000 (07:27 -0700)
commit5081d31a0ed753e7e23c5ed51f572d38aef66bfe
tree1282d178297d47721e0e64df20a1cbf454816643
parenta5ab9398e34287ed8cbb010d0758790e6692530c
glsl: Clarify ir_function::matching_sigature()

The function used a variable named 'score', which was an outright lie.
A signature matches or it doesn't; there is no fuzzy scoring.

Change the return type of parameter_lists_match() to an enum, and
let ir_function::matching_sigature() switch on that enum.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Chad Versace <chad@chad-versace.us>
src/glsl/ir_function.cpp