From: Christoph Bumiller Date: Wed, 2 Feb 2011 20:23:09 +0000 (+0100) Subject: nvc0: don't combine memory loads across block boundaries X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d3ea15f5ca570b9d885781cd72232026e50046d0;p=mesa.git nvc0: don't combine memory loads across block boundaries --- 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; }