From: Jason Ekstrand Date: Thu, 17 Oct 2019 14:54:02 +0000 (-0500) Subject: intel/eu: Set the right subnr for ALIGN16 destinations X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e0ab48e3ea0c1355b2da191bb3b0213f088d7582;p=mesa.git intel/eu: Set the right subnr for ALIGN16 destinations Reviewed-by: Kristian H. Kristensen Part-of: --- diff --git a/src/intel/compiler/brw_eu_emit.c b/src/intel/compiler/brw_eu_emit.c index cc1bc8cc13f..bd59cf9ac47 100644 --- a/src/intel/compiler/brw_eu_emit.c +++ b/src/intel/compiler/brw_eu_emit.c @@ -890,7 +890,7 @@ brw_alu3(struct brw_codegen *p, unsigned opcode, struct brw_reg dest, dest.file == BRW_MESSAGE_REGISTER_FILE); } brw_inst_set_3src_dst_reg_nr(devinfo, inst, dest.nr); - brw_inst_set_3src_a16_dst_subreg_nr(devinfo, inst, dest.subnr / 16); + brw_inst_set_3src_a16_dst_subreg_nr(devinfo, inst, dest.subnr / 4); brw_inst_set_3src_a16_dst_writemask(devinfo, inst, dest.writemask); assert(src0.file == BRW_GENERAL_REGISTER_FILE);