intel/eu: Set EXECUTE_1 when setting the rounding mode in cr0
authorJason Ekstrand <jason.ekstrand@intel.com>
Sat, 19 May 2018 03:04:12 +0000 (20:04 -0700)
committerJason Ekstrand <jason.ekstrand@intel.com>
Tue, 22 May 2018 16:53:23 +0000 (09:53 -0700)
Fixes: d6cd14f2131a5b "i965/fs: Define new shader opcode to..."
Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com>
src/intel/compiler/brw_eu_emit.c

index ee5a048bcaaecdee2c84439697a9149b5a177675..6d81c636f27ed66b0b4e281ac1dffd945cf7b8b7 100644 (file)
@@ -3713,6 +3713,7 @@ brw_rounding_mode(struct brw_codegen *p,
    if (bits != BRW_CR0_RND_MODE_MASK) {
       brw_inst *inst = brw_AND(p, brw_cr0_reg(0), brw_cr0_reg(0),
                                brw_imm_ud(~BRW_CR0_RND_MODE_MASK));
+      brw_inst_set_exec_size(p->devinfo, inst, BRW_EXECUTE_1);
 
       /* From the Skylake PRM, Volume 7, page 760:
        *  "Implementation Restriction on Register Access: When the control
@@ -3727,6 +3728,7 @@ brw_rounding_mode(struct brw_codegen *p,
    if (bits) {
       brw_inst *inst = brw_OR(p, brw_cr0_reg(0), brw_cr0_reg(0),
                               brw_imm_ud(bits));
+      brw_inst_set_exec_size(p->devinfo, inst, BRW_EXECUTE_1);
       brw_inst_set_thread_control(p->devinfo, inst, BRW_THREAD_SWITCH);
    }
 }