r600g/llvm: Do not override llvm provided stack_size
authorVincent Lejeune <vljn@ovi.com>
Wed, 3 Apr 2013 16:39:18 +0000 (18:39 +0200)
committerVincent Lejeune <vljn@ovi.com>
Wed, 3 Apr 2013 16:39:49 +0000 (18:39 +0200)
src/gallium/drivers/r600/r600_asm.c

index c88b48dc96b953c7d523e611ca13cd906ebeb2cc..a0dc1deb8eba7d2e0b0a4ccdab52cf66b3c05cc0 100644 (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;