nv50,nvc0: fix condition code change when commuting SET sources
This commit is contained in:
@@ -299,7 +299,7 @@ check_swap_src_0_1(struct nv_instruction *nvi)
|
||||
}
|
||||
|
||||
if (nvi->opcode == NV_OP_SET && nvi->src[0] != src0)
|
||||
nvi->set_cond = cc_swapped[nvi->set_cond];
|
||||
nvi->set_cond = (nvi->set_cond & ~7) | cc_swapped[nvi->set_cond & 7];
|
||||
}
|
||||
|
||||
static int
|
||||
|
||||
@@ -258,8 +258,8 @@ check_swap_src_0_1(struct nv_instruction *nvi)
|
||||
}
|
||||
}
|
||||
|
||||
if (nvi->src[0] != src0 && nvi->opcode == NV_OP_SET)
|
||||
nvi->set_cond = cc_swapped[nvi->set_cond];
|
||||
if (nvi->src[0] != src0 && NV_BASEOP(nvi->opcode) == NV_OP_SET)
|
||||
nvi->set_cond = (nvi->set_cond & ~7) | cc_swapped[nvi->set_cond & 7];
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user