mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
nvc0: commute sources of SET too if beneficial
This commit is contained in:
parent
8e572998fc
commit
c18aa3c73f
2 changed files with 2 additions and 2 deletions
|
|
@ -240,7 +240,7 @@ check_swap_src_0_1(struct nv_instruction *nvi)
|
|||
struct nv_ref *src0 = nvi->src[0];
|
||||
struct nv_ref *src1 = nvi->src[1];
|
||||
|
||||
if (!nv_op_commutative(nvi->opcode))
|
||||
if (!nv_op_commutative(nvi->opcode) && NV_BASEOP(nvi->opcode) != NV_OP_SET)
|
||||
return;
|
||||
assert(src0 && src1 && src0->value && src1->value);
|
||||
|
||||
|
|
|
|||
|
|
@ -369,7 +369,7 @@ struct nv_op_info nvc0_op_info_table[NV_OP_COUNT + 1] =
|
|||
|
||||
{ NV_OP_ADD, "sub", NV_TYPE_F32, 0, 0, 0, 0, 1, 0, 1, 0 },
|
||||
|
||||
{ NV_OP_FSET_F32, "fset", NV_TYPE_F32, NV_MOD_SGN, 0, 0, 0, 1, 0, 0, 2 },
|
||||
{ NV_OP_SET, "fset", NV_TYPE_F32, NV_MOD_SGN, 0, 0, 0, 1, 0, 0, 2 },
|
||||
|
||||
{ NV_OP_TXG, "texgrad", NV_TYPE_F32, 0, 0, 0, 1, 1, 0, 0, 0 },
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue