unsigned * inst_byte_count,
enum radeon_family family,
unsigned *ngpr,
+ unsigned *stack_size,
unsigned dump)
{
unsigned r;
*inst_bytes = binary.code;
*inst_byte_count = binary.code_size;
*ngpr = util_le32_to_cpu(*(uint32_t*)binary.config);
+ *stack_size = util_le32_to_cpu(*(uint32_t*)binary.config + 4);
return r;
}
unsigned * inst_byte_count,
enum radeon_family family,
unsigned *ngpr,
+ unsigned *stack_size,
unsigned dump);
#endif /* defined R600_USE_LLVM || defined HAVE_OPENCL */
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++];
mod = r600_tgsi_llvm(&radeon_llvm_ctx, tokens);
if (r600_llvm_compile(mod, &inst_bytes, &inst_byte_count,
- rscreen->family, &ctx.bc->ngpr, dump)) {
+ rscreen->family, &ctx.bc->ngpr, &ctx.bc->nstack, dump)) {
FREE(inst_bytes);
radeon_llvm_dispose(&radeon_llvm_ctx);
use_llvm = 0;