i965/vec4: Don't return void from a void function.
authorMatt Turner <mattst88@gmail.com>
Mon, 23 Jun 2014 20:30:13 +0000 (13:30 -0700)
committerMatt Turner <mattst88@gmail.com>
Tue, 24 Jun 2014 18:51:54 +0000 (11:51 -0700)
Reviewed-by: Ben Widawsky <ben@bwidawsk.net>
Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
Reviewed-by: Ian Romanick <ian.d.romanick@intel.com>
src/mesa/drivers/dri/i965/brw_vec4_visitor.cpp

index 7fd8c2b37619614b770a288f488eeb74eeaf3fc5..f3316f8a148934c5402b88feb087ff2d6df7b00e 100644 (file)
@@ -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);
    }
 }