Commit 8da810a7 authored by Matt Turner's avatar Matt Turner Committed by Marge Bot

intel/compiler: Don't emit no-op cr0 changes

If mask is 0, we're asking for no changes to cr0.
Reviewed-by: Lionel Landwerlin's avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Part-of: <!5566>
parent fe14dc98
Pipeline #170273 waiting for manual action with stages
......@@ -258,6 +258,9 @@ fs_visitor::emit_shader_float_controls_execution_mode()
fs_builder abld = bld.annotate("shader floats control execution mode");
unsigned mask, mode = brw_rnd_mode_from_nir(execution_mode, &mask);
if (mask == 0)
return;
abld.emit(SHADER_OPCODE_FLOAT_CONTROL_MODE, bld.null_reg_ud(),
brw_imm_d(mode), brw_imm_d(mask));
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment