nvc0: don't combine memory loads across block boundaries
authorChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 2 Feb 2011 20:23:09 +0000 (21:23 +0100)
committerChristoph Bumiller <e0425955@student.tuwien.ac.at>
Wed, 9 Feb 2011 15:04:59 +0000 (16:04 +0100)
src/gallium/drivers/nvc0/nvc0_pc_optimize.c

index b6d9972..57bf4b7 100644 (file)
@@ -849,6 +849,11 @@ nv_pass_mem_opt(struct pass_reld_elim *ctx, struct nv_basic_block *b)
       }
    }
 
+   ctx->alloc = 0;
+   ctx->mem_a = ctx->mem_v = ctx->mem_l = NULL;
+   for (s = 0; s < 16; ++s)
+      ctx->mem_c[s] = NULL;
+
    DESCEND_ARBITRARY(s, nv_pass_mem_opt);
    return 0;
 }