From: Francisco Jerez Date: Fri, 23 Aug 2019 01:14:12 +0000 (-0700) Subject: intel/eu/gen12: Implement control flow instruction binary encoding. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d24b8af23daffed650cca88ca4e29add4b598d14;p=mesa.git intel/eu/gen12: Implement control flow instruction binary encoding. Reviewed-by: Jordan Justen Reviewed-by: Kenneth Graunke --- diff --git a/src/intel/compiler/brw_inst.h b/src/intel/compiler/brw_inst.h index cc01b4e5a70..dd5ea44c993 100644 --- a/src/intel/compiler/brw_inst.h +++ b/src/intel/compiler/brw_inst.h @@ -532,6 +532,9 @@ brw_inst_set_uip(const struct gen_device_info *devinfo, { assert(devinfo->gen >= 6); + if (devinfo->gen >= 12) + brw_inst_set_src1_is_imm(devinfo, inst, 1); + if (devinfo->gen >= 8) { brw_inst_set_bits(inst, 95, 64, (uint32_t)value); } else { @@ -559,6 +562,9 @@ brw_inst_set_jip(const struct gen_device_info *devinfo, { assert(devinfo->gen >= 6); + if (devinfo->gen >= 12) + brw_inst_set_src0_is_imm(devinfo, inst, 1); + if (devinfo->gen >= 8) { brw_inst_set_bits(inst, 127, 96, (uint32_t)value); } else {