From: Eric Anholt Date: Tue, 27 Jul 2010 02:36:53 +0000 (-0700) Subject: ir_to_mesa: Fix up handling of void function returns. X-Git-Tag: 062012170305~10660^2~282 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=576d01ad8c8b8aa57b4711c98d8e004d4f20fc0b;p=profile%2Fivi%2Fmesa.git ir_to_mesa: Fix up handling of void function returns. void functions have a type of glsl_type::void_type, not a null type. --- diff --git a/src/mesa/program/ir_to_mesa.cpp b/src/mesa/program/ir_to_mesa.cpp index 6eceddf..d06b832 100644 --- a/src/mesa/program/ir_to_mesa.cpp +++ b/src/mesa/program/ir_to_mesa.cpp @@ -1501,7 +1501,7 @@ ir_to_mesa_visitor::get_function_signature(ir_function_signature *sig) break; } - if (sig->return_type) { + if (!sig->return_type->is_void()) { entry->return_reg = get_temp(sig->return_type); } else { entry->return_reg = ir_to_mesa_undef;