diff options
author | Alyssa Rosenzweig <[email protected]> | 2019-08-21 09:18:12 -0700 |
---|---|---|
committer | Alyssa Rosenzweig <[email protected]> | 2019-08-21 10:38:31 -0700 |
commit | d0b9f094fdfbcfc816a844696da472a44e8dbc8e (patch) | |
tree | d54e49df67a6ed70432bebe9164e3bf006c18bee /src/panfrost/midgard/midgard_ra.c | |
parent | 91a5b2657d3dfd56a3d1f36dc2e165999fbde2fe (diff) |
pan/midgard: Simplify contradictory check.
Coverity.
Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost/midgard/midgard_ra.c')
-rw-r--r-- | src/panfrost/midgard/midgard_ra.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/panfrost/midgard/midgard_ra.c b/src/panfrost/midgard/midgard_ra.c index f900e847802..e9097c2c63c 100644 --- a/src/panfrost/midgard/midgard_ra.c +++ b/src/panfrost/midgard/midgard_ra.c @@ -868,10 +868,7 @@ install_registers_instr( new_swizzle, src.mask, default_phys_reg(0), src); } else { - unsigned r = encodes_src ? - args.src[0] : args.dest; - - struct phys_reg src = index_to_reg(ctx, g, r); + struct phys_reg src = index_to_reg(ctx, g, args.dest); ins->load_store.reg = src.reg; |