From 2b9ed257c0c4db879970afb2c5981c59ca70c21b Mon Sep 17 00:00:00 2001 From: Vincent Lejeune Date: Sat, 13 Apr 2013 16:36:02 +0200 Subject: r600g/llvm: Use gprcount from llvm --- src/gallium/drivers/r600/r600_llvm.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers/r600/r600_llvm.c') diff --git a/src/gallium/drivers/r600/r600_llvm.c b/src/gallium/drivers/r600/r600_llvm.c index e605e6bec4c..35d6c9015d7 100644 --- a/src/gallium/drivers/r600/r600_llvm.c +++ b/src/gallium/drivers/r600/r600_llvm.c @@ -555,6 +555,7 @@ unsigned r600_llvm_compile( unsigned char ** inst_bytes, unsigned * inst_byte_count, enum radeon_family family, + unsigned *ngpr, unsigned dump) { unsigned r; @@ -563,6 +564,7 @@ unsigned r600_llvm_compile( 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; } -- cgit v1.2.3