summaryrefslogtreecommitdiffstats
path: root/src/intel/compiler/brw_eu_emit.c
diff options
context:
space:
mode:
authorFrancisco Jerez <[email protected]>2019-09-26 23:36:58 -0700
committerFrancisco Jerez <[email protected]>2019-10-11 12:24:16 -0700
commit7499e10383bb4182b1bf3edb90e1915fdf0c6d33 (patch)
tree40b087c89bfbf03441a1c1c753a5e4cc23b3d4ef /src/intel/compiler/brw_eu_emit.c
parenta66ea33991a8542144997a55649878cde07e3e3e (diff)
intel/eu/gen12: Don't set thread control, it's gone.
An effect similar to the one formerly provided by setting thread control to "switch" can be achieved now by setting a RegDist of 1 on the SWSB field. Reviewed-by: Kenneth Graunke <[email protected]>
Diffstat (limited to 'src/intel/compiler/brw_eu_emit.c')
-rw-r--r--src/intel/compiler/brw_eu_emit.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/intel/compiler/brw_eu_emit.c b/src/intel/compiler/brw_eu_emit.c
index 323ba20bb8c..7bbc5d30b98 100644
--- a/src/intel/compiler/brw_eu_emit.c
+++ b/src/intel/compiler/brw_eu_emit.c
@@ -3555,12 +3555,14 @@ brw_float_controls_mode(struct brw_codegen *p,
* thread control field to ‘switch’ for an instruction that uses
* control register as an explicit operand."
*/
- brw_inst_set_thread_control(p->devinfo, inst, BRW_THREAD_SWITCH);
+ if (p->devinfo->gen < 12)
+ brw_inst_set_thread_control(p->devinfo, inst, BRW_THREAD_SWITCH);
if (mode) {
brw_inst *inst_or = brw_OR(p, brw_cr0_reg(0), brw_cr0_reg(0),
brw_imm_ud(mode));
brw_inst_set_exec_size(p->devinfo, inst_or, BRW_EXECUTE_1);
- brw_inst_set_thread_control(p->devinfo, inst_or, BRW_THREAD_SWITCH);
+ if (p->devinfo->gen < 12)
+ brw_inst_set_thread_control(p->devinfo, inst_or, BRW_THREAD_SWITCH);
}
}