summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/r600/r600_shader.c
diff options
context:
space:
mode:
authorVincent Lejeune <[email protected]>2013-03-30 02:09:15 +0100
committerVincent Lejeune <[email protected]>2013-04-01 23:43:57 +0200
commit8c8c4e3977e3126d8bb23d1e30e27d869e32c89f (patch)
treea91bcbac1eb0a61d466ba16d1841f3a83b404d68 /src/gallium/drivers/r600/r600_shader.c
parent4ac0d85ca68100aaecb3016273f4df71f40e289b (diff)
r600g/llvm: Use stack_size provided from llvm.
Diffstat (limited to 'src/gallium/drivers/r600/r600_shader.c')
-rw-r--r--src/gallium/drivers/r600/r600_shader.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gallium/drivers/r600/r600_shader.c b/src/gallium/drivers/r600/r600_shader.c
index c51773af5b2..57cf17b1734 100644
--- a/src/gallium/drivers/r600/r600_shader.c
+++ b/src/gallium/drivers/r600/r600_shader.c
@@ -592,6 +592,7 @@ static void r600_bytecode_from_byte_stream(struct r600_shader_ctx *ctx,
unsigned char * bytes, unsigned num_bytes)
{
unsigned bytes_read = 0;
+ ctx->bc->nstack = bytes[bytes_read++];
unsigned i, byte;
while (bytes_read < num_bytes) {
char inst_type = bytes[bytes_read++];