mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-06-08 18:58:17 +02:00
nvc0: don't swap sources if either value is not in a GPR
The memory / immediate source should already be in the only valid position.
This commit is contained in:
parent
2fa35eedd9
commit
bb2c8e7099
1 changed files with 3 additions and 0 deletions
|
|
@ -245,6 +245,9 @@ check_swap_src_0_1(struct nv_instruction *nvi)
|
|||
return;
|
||||
assert(src0 && src1 && src0->value && src1->value);
|
||||
|
||||
if (src1->value->reg.file != NV_FILE_GPR)
|
||||
return;
|
||||
|
||||
if (is_cspace_load(src0->value->insn)) {
|
||||
if (!is_cspace_load(src1->value->insn)) {
|
||||
nvi->src[0] = src1;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue