mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-03 01:18:06 +02:00
i965: Don't overwrite the math function with conditional mod.
Ben was asking about the undocumented restriction that the math instruction cannot use the dependency control hints. I went to reconfirm and disabled the is_math() check in opt_set_dependency_control() and saw that the disassembled math instructions with dependency hints had a bogus math function. We were mistakenly overwriting it by setting an empty conditional mod. Unfortunately, this wasn't the cause of the aforementioned problem (I reproduced it). This bug is benign, since we don't set dependeny hints on math instructions -- but maybe some day. Reviewed-by: Kenneth Graunke <kenneth@whitecape.org>
This commit is contained in:
parent
f5bef2d2e5
commit
56ac25918a
2 changed files with 4 additions and 2 deletions
|
|
@ -2010,7 +2010,8 @@ fs_generator::generate_code(const cfg_t *cfg, int dispatch_width)
|
|||
|
||||
brw_inst *last = &p->store[last_insn_offset / 16];
|
||||
|
||||
brw_inst_set_cond_modifier(brw, last, inst->conditional_mod);
|
||||
if (inst->conditional_mod)
|
||||
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);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1509,7 +1509,8 @@ vec4_generator::generate_code(const cfg_t *cfg)
|
|||
|
||||
brw_inst *last = &p->store[pre_emit_nr_insn];
|
||||
|
||||
brw_inst_set_cond_modifier(brw, last, inst->conditional_mod);
|
||||
if (inst->conditional_mod)
|
||||
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