i965: Set correct field for indirect align16 addrimm.
authorMatt Turner <mattst88@gmail.com>
Mon, 26 Oct 2015 00:20:54 +0000 (17:20 -0700)
committerMatt Turner <mattst88@gmail.com>
Fri, 30 Oct 2015 00:51:16 +0000 (17:51 -0700)
This has been wrong since the initial import of the i965 driver.

Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
src/mesa/drivers/dri/i965/brw_eu_emit.c

index ebd811f967417aaf4994e133a9a1e971322e2667..df4859086ddae63c934615bc8356ced478de6188 100644 (file)
@@ -410,7 +410,7 @@ brw_set_src0(struct brw_codegen *p, brw_inst *inst, struct brw_reg reg)
          if (brw_inst_access_mode(devinfo, inst) == BRW_ALIGN_1) {
             brw_inst_set_src0_ia1_addr_imm(devinfo, inst, reg.dw1.bits.indirect_offset);
         } else {
-            brw_inst_set_src0_ia_subreg_nr(devinfo, inst, reg.dw1.bits.indirect_offset);
+            brw_inst_set_src0_ia16_addr_imm(devinfo, inst, reg.dw1.bits.indirect_offset);
         }
       }