glsl: Cast ir_call parameters to ir_rvalue, not ir_instruction.
authorKenneth Graunke <kenneth@whitecape.org>
Sat, 23 Nov 2013 17:51:52 +0000 (09:51 -0800)
committerKenneth Graunke <kenneth@whitecape.org>
Mon, 13 Jan 2014 19:38:19 +0000 (11:38 -0800)
commit8050584096eec50570bfc0c81926050f27a5dfe5
tree0000afe81322fe695bea4d8842fdf76cb9a39de4
parent2e113dfab8c7068e083960fcf0b93418c3d79fa3
glsl: Cast ir_call parameters to ir_rvalue, not ir_instruction.

A function call's parameters are always rvalues.  ir_rvalue may not
always be a subclass of ir_instruction in the future, so we should use
the right one.

Signed-off-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Matt Turner <mattst88@gmail.com>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/glsl/ir_print_visitor.cpp
src/glsl/opt_copy_propagation.cpp
src/glsl/opt_copy_propagation_elements.cpp
src/glsl/opt_function_inlining.cpp