summaryrefslogtreecommitdiffstats
path: root/src/panfrost
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <[email protected]>2019-08-27 13:15:12 -0700
committerAlyssa Rosenzweig <[email protected]>2019-08-30 15:50:24 -0700
commitf29d03a1f90a15d7b11e40af5ad41ccf93eb667f (patch)
tree3d39c6c0f8b6555a823ada258a048924f1892e55 /src/panfrost
parentd722b60191c2210fa4b12cffc60f4ad8be5f7758 (diff)
pan/midgard: Fix corner case in RA
It doesn't really matter but... meh. Signed-off-by: Alyssa Rosenzweig <[email protected]>
Diffstat (limited to 'src/panfrost')
-rw-r--r--src/panfrost/midgard/midgard_ra.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panfrost/midgard/midgard_ra.c b/src/panfrost/midgard/midgard_ra.c
index 9125d0f0392..02b76d6a987 100644
--- a/src/panfrost/midgard/midgard_ra.c
+++ b/src/panfrost/midgard/midgard_ra.c
@@ -141,7 +141,7 @@ static struct phys_reg
index_to_reg(compiler_context *ctx, struct ra_graph *g, unsigned reg)
{
/* Check for special cases */
- if ((reg == ~0) && g)
+ if (reg == ~0)
return default_phys_reg(REGISTER_UNUSED);
else if (reg >= SSA_FIXED_MINIMUM)
return default_phys_reg(SSA_REG_FROM_FIXED(reg));