mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-09 04:38:03 +02:00
pan/midgard: Simplify contradictory check.
Coverity. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
This commit is contained in:
parent
91a5b2657d
commit
d0b9f094fd
1 changed files with 1 additions and 4 deletions
|
|
@ -868,10 +868,7 @@ install_registers_instr(
|
||||||
new_swizzle, src.mask,
|
new_swizzle, src.mask,
|
||||||
default_phys_reg(0), src);
|
default_phys_reg(0), src);
|
||||||
} else {
|
} else {
|
||||||
unsigned r = encodes_src ?
|
struct phys_reg src = index_to_reg(ctx, g, args.dest);
|
||||||
args.src[0] : args.dest;
|
|
||||||
|
|
||||||
struct phys_reg src = index_to_reg(ctx, g, r);
|
|
||||||
|
|
||||||
ins->load_store.reg = src.reg;
|
ins->load_store.reg = src.reg;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue