mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-04 11:20:20 +01:00
i965/vec4: Remove useless conditionals.
Setting a couple of bits is the same cost or less as conditionally setting a couple of bits.
This commit is contained in:
parent
2e90d1fb62
commit
e658440234
1 changed files with 3 additions and 6 deletions
|
|
@ -1266,12 +1266,9 @@ vec4_generator::generate_code(exec_list *instructions)
|
|||
|
||||
brw_inst *last = &p->store[pre_emit_nr_insn];
|
||||
|
||||
if (inst->conditional_mod)
|
||||
brw_inst_set_cond_modifier(brw, last, inst->conditional_mod);
|
||||
if (inst->no_dd_clear)
|
||||
brw_inst_set_no_dd_clear(brw, last, true);
|
||||
if (inst->no_dd_check)
|
||||
brw_inst_set_no_dd_check(brw, last, true);
|
||||
brw_inst_set_cond_modifier(brw, last, inst->conditional_mod);
|
||||
brw_inst_set_no_dd_clear(brw, last, inst->no_dd_clear);
|
||||
brw_inst_set_no_dd_check(brw, last, inst->no_dd_check);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue