summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVincent Lejeune <[email protected]>2013-04-03 18:39:18 +0200
committerVincent Lejeune <[email protected]>2013-04-03 18:39:49 +0200
commit159d9340662a70df3dcc9da1681f5b0a8e7650cf (patch)
tree08928813ffd04f0ce03d52689ee83b65dbcddc34
parent097a6ecdfe592fdf2c5f3b48a17da6507eaa405c (diff)
r600g/llvm: Do not override llvm provided stack_size
-rw-r--r--src/gallium/drivers/r600/r600_asm.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_asm.c b/src/gallium/drivers/r600/r600_asm.c
index c88b48dc96b..a0dc1deb8eb 100644
--- a/src/gallium/drivers/r600/r600_asm.c
+++ b/src/gallium/drivers/r600/r600_asm.c
@@ -1557,7 +1557,8 @@ int r600_bytecode_build(struct r600_bytecode *bc)
unsigned addr;
int i, r;
- bc->nstack = bc->stack.max_entries;
+ if (!bc->nstack) // If not 0, Stack_size already provided by llvm
+ bc->nstack = bc->stack.max_entries;
if (bc->type == TGSI_PROCESSOR_VERTEX && !bc->nstack) {
bc->nstack = 1;