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