From d24b8af23daffed650cca88ca4e29add4b598d14 Mon Sep 17 00:00:00 2001 From: Francisco Jerez Date: Thu, 22 Aug 2019 18:14:12 -0700 Subject: intel/eu/gen12: Implement control flow instruction binary encoding. Reviewed-by: Jordan Justen Reviewed-by: Kenneth Graunke --- src/intel/compiler/brw_inst.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/intel/compiler') 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 { -- cgit v1.2.3