intel/eu: Set the right subnr for ALIGN16 destinations
authorJason Ekstrand <jason@jlekstrand.net>
Thu, 17 Oct 2019 14:54:02 +0000 (09:54 -0500)
committerMarge Bot <eric+marge@anholt.net>
Tue, 23 Jun 2020 17:43:54 +0000 (17:43 +0000)
Reviewed-by: Kristian H. Kristensen <hoegsberg@google.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5596>

src/intel/compiler/brw_eu_emit.c

index cc1bc8cc13fd1f15826f6fc078b8be41c8f0a746..bd59cf9ac47fdd99c648c995d2326bb14f4d3c89 100644 (file)
@@ -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);