From 159d9340662a70df3dcc9da1681f5b0a8e7650cf Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Wed, 3 Apr 2013 18:39:18 +0200 Subject: r600g/llvm: Do not override llvm provided stack_size --- src/gallium/drivers/r600/r600_asm.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') 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; -- cgit v1.2.3