aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>2019-07-19 16:11:56 (GMT)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>2019-07-22 15:20:34 (GMT)
commit16c8c354d0c9452011bd41e160ba9c42afa5387c (patch)
tree102b84f1c7c8dc6f6f20d1937610d03cac712998
parentd155168e6cdbfc0e86cad6d22fda1111408340e4 (diff)
downloadexternal_mesa3d-16c8c354d0c9452011bd41e160ba9c42afa5387c.zip
external_mesa3d-16c8c354d0c9452011bd41e160ba9c42afa5387c.tar.gz
external_mesa3d-16c8c354d0c9452011bd41e160ba9c42afa5387c.tar.bz2
pan/midgard: Ignore inline_constant in liveness
It doesn't make any sense to look at it. Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
-rw-r--r--src/panfrost/midgard/midgard_ra.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/panfrost/midgard/midgard_ra.c b/src/panfrost/midgard/midgard_ra.c
index cb89579..dcae818 100644
--- a/src/panfrost/midgard/midgard_ra.c
+++ b/src/panfrost/midgard/midgard_ra.c
@@ -338,6 +338,9 @@ allocate_registers(compiler_context *ctx, bool *spilled)
for (int src = 0; src < 2; ++src) {
int s = sources[src];
+ if (ins->ssa_args.inline_constant && src == 1)
+ continue;
+
if (s < 0) continue;
if (s >= SSA_FIXED_MINIMUM) continue;