summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2019-08-22 18:14:12 -0700
committerFrancisco Jerez <[email protected]>2019-10-11 12:24:16 -0700
commitd24b8af23daffed650cca88ca4e29add4b598d14 (patch)
treea59ed2e389d48640dbe8b27a9aa9228d6864e03a /src/intel/compiler
parent956c156dc494b0ba39287e241c75682334aa8fef (diff)
intel/eu/gen12: Implement control flow instruction binary encoding.
Reviewed-by: Jordan Justen <[email protected]> Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/compiler')
-rw-r--r--src/intel/compiler/brw_inst.h6
1 files changed, 6 insertions, 0 deletions
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 {