From: Vincent Lejeune Date: Wed, 3 Apr 2013 16:39:18 +0000 (+0200) Subject: r600g/llvm: Do not override llvm provided stack_size X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=159d9340662a70df3dcc9da1681f5b0a8e7650cf;p=mesa.git r600g/llvm: Do not override llvm provided stack_size --- 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;