r600g/llvm: Use stack_size provided from llvm.
authorVincent Lejeune <vljn@ovi.com>
Sat, 30 Mar 2013 01:09:15 +0000 (02:09 +0100)
committerVincent Lejeune <vljn@ovi.com>
Mon, 1 Apr 2013 21:43:57 +0000 (23:43 +0200)
src/gallium/drivers/r600/r600_shader.c

index c51773af5b2a68ef78248426b2b8321a1e6fd29b..57cf17b17344ef871399c81064f20f66b85f1e72 100644 (file)
@@ -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++];