r600g/llvm: Do not override llvm provided stack_size

This commit is contained in:
Vincent Lejeune 2013-04-03 18:39:18 +02:00
parent 097a6ecdfe
commit 159d934066
1 changed files with 2 additions and 1 deletions

View File

@ -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;