From: Jason Ekstrand Date: Thu, 25 Sep 2014 19:06:42 +0000 (-0700) Subject: i965: Explicitly set widths on gen5 math instruction destinations. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5390ca8ce93028d2d6016d4817e92427d09e4a21;p=mesa.git i965: Explicitly set widths on gen5 math instruction destinations. Signed-off-by: Jason Ekstrand Reviewed-by: Matt Turner --- diff --git a/src/mesa/drivers/dri/i965/brw_fs.cpp b/src/mesa/drivers/dri/i965/brw_fs.cpp index c710ad63a7a..cd90989c8dd 100644 --- a/src/mesa/drivers/dri/i965/brw_fs.cpp +++ b/src/mesa/drivers/dri/i965/brw_fs.cpp @@ -1523,7 +1523,7 @@ fs_visitor::emit_math(enum opcode opcode, fs_reg dst, fs_reg src0, fs_reg src1) fs_reg &op0 = is_int_div ? src1 : src0; fs_reg &op1 = is_int_div ? src0 : src1; - emit(BRW_OPCODE_MOV, fs_reg(MRF, base_mrf + 1, op1.type), op1); + emit(MOV(fs_reg(MRF, base_mrf + 1, op1.type, dispatch_width), op1)); inst = emit(opcode, dst, op0, reg_null_f); inst->base_mrf = base_mrf;