From d3ea15f5ca570b9d885781cd72232026e50046d0 Mon Sep 17 00:00:00 2001 From: Christoph Bumiller Date: Wed, 2 Feb 2011 21:23:09 +0100 Subject: [PATCH] nvc0: don't combine memory loads across block boundaries --- src/gallium/drivers/nvc0/nvc0_pc_optimize.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/gallium/drivers/nvc0/nvc0_pc_optimize.c b/src/gallium/drivers/nvc0/nvc0_pc_optimize.c index b6d99724a10..57bf4b77f3e 100644 --- a/src/gallium/drivers/nvc0/nvc0_pc_optimize.c +++ b/src/gallium/drivers/nvc0/nvc0_pc_optimize.c @@ -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; } -- 2.30.2