mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 05:18:08 +02:00
intel/eu: Set EXECUTE_1 when setting the rounding mode in cr0
Fixes:d6cd14f213"i965/fs: Define new shader opcode to..." Reviewed-by: Jose Maria Casanova Crespo <jmcasanova@igalia.com> (cherry picked from commit417b9e5770)
This commit is contained in:
parent
66604a7518
commit
14689dccbf
1 changed files with 2 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue