summaryrefslogtreecommitdiffstats
path: root/src/gallium
diff options
context:
space:
mode:
authorChristoph Bumiller <[email protected]>2011-02-02 21:23:09 +0100
committerChristoph Bumiller <[email protected]>2011-02-09 16:04:59 +0100
commitd3ea15f5ca570b9d885781cd72232026e50046d0 (patch)
tree0ad8f8f9f746509f4361b7c142f9dd5b6e59c46c /src/gallium
parentf0d742962377948a9688f4fa3b92c2f8bbca03e9 (diff)
nvc0: don't combine memory loads across block boundaries
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/nvc0/nvc0_pc_optimize.c5
1 files changed, 5 insertions, 0 deletions
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;
}