From: Matt Turner Date: Mon, 23 Jun 2014 20:30:13 +0000 (-0700) Subject: i965/vec4: Don't return void from a void function. X-Git-Tag: upstream/10.3~1384 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0e800dfe75d75c2c5c12bb3762aa9723854a241e;p=platform%2Fupstream%2Fmesa.git i965/vec4: Don't return void from a void function. Reviewed-by: Ben Widawsky Reviewed-by: Kenneth Graunke Reviewed-by: Ian Romanick --- diff --git a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp index 7fd8c2b..f3316f8 100644 --- a/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp +++ b/src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp @@ -366,9 +366,9 @@ vec4_visitor::emit_math(opcode opcode, dst_reg dst, src_reg src) } if (brw->gen >= 6) { - return emit_math1_gen6(opcode, dst, src); + emit_math1_gen6(opcode, dst, src); } else { - return emit_math1_gen4(opcode, dst, src); + emit_math1_gen4(opcode, dst, src); } } @@ -418,9 +418,9 @@ vec4_visitor::emit_math(enum opcode opcode, } if (brw->gen >= 6) { - return emit_math2_gen6(opcode, dst, src0, src1); + emit_math2_gen6(opcode, dst, src0, src1); } else { - return emit_math2_gen4(opcode, dst, src0, src1); + emit_math2_gen4(opcode, dst, src0, src1); } }