mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 09:08:10 +02:00
nouveau/mme: Don't allow PRMT and MTHD in the same op on Turing+
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/30703>
This commit is contained in:
parent
f5507fb69b
commit
8d20ade09b
1 changed files with 8 additions and 0 deletions
|
|
@ -423,6 +423,14 @@ mme_tu104_next_inst_can_add_mthd(struct mme_tu104_builder *tb,
|
|||
return false;
|
||||
}
|
||||
|
||||
/* We can't have a mthd in an op with STATE */
|
||||
struct mme_tu104_inst *cur = mme_tu104_cur_inst(tb);
|
||||
if (((tb->inst_parts & MME_TU104_INSTR_PART_ALU0) &&
|
||||
cur->alu[0].op == MME_TU104_ALU_OP_STATE) ||
|
||||
((tb->inst_parts & MME_TU104_INSTR_PART_ALU1) &&
|
||||
cur->alu[1].op == MME_TU104_ALU_OP_STATE))
|
||||
return false;
|
||||
|
||||
if (out == MME_TU104_OUT_OP_IMM0 &&
|
||||
(tb->inst_parts & MME_TU104_INSTR_PART_IMM0) &&
|
||||
(tb->inst_parts & MME_TU104_INSTR_PART_IMM1))
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue