pan/midgard: Remove check for `class`
authorAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Wed, 24 Jul 2019 21:10:12 +0000 (14:10 -0700)
committerAlyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Thu, 25 Jul 2019 13:37:22 +0000 (06:37 -0700)
Fixes classes defaulting to vec4 in some cases.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
src/panfrost/midgard/midgard_ra.c

index 67a1795545d1b6d04b6c0755d4aa17f7a45ae1c3..dc3d22883ab5a91dc345ed2699ce8a9bf65fe9f8 100644 (file)
@@ -492,7 +492,6 @@ allocate_registers(compiler_context *ctx, bool *spilled)
 
         for (unsigned i = 0; i < ctx->temp_count; ++i) {
                 unsigned class = found_class[i];
-                if (!class) continue;
                 ra_set_node_class(g, i, classes[class]);
         }