diff options
author | Tom Stellard <[email protected]> | 2013-04-04 09:57:13 -0700 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2013-04-15 10:13:10 -0700 |
commit | 7782d19cdccfd8cefebec7e665aff27463b00ec1 (patch) | |
tree | 86bf11d519e1aa71cd71e787f83725b2d4815e48 /src/gallium/drivers/r600/r600_llvm.c | |
parent | 1d6eb23f2dc1bb53636802cb698e6788ca0a26ac (diff) |
radeon/llvm: Use a struct for storing compiled code
Diffstat (limited to 'src/gallium/drivers/r600/r600_llvm.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_llvm.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/gallium/drivers/r600/r600_llvm.c b/src/gallium/drivers/r600/r600_llvm.c index 127149faefe..e605e6bec4c 100644 --- a/src/gallium/drivers/r600/r600_llvm.c +++ b/src/gallium/drivers/r600/r600_llvm.c @@ -557,9 +557,13 @@ unsigned r600_llvm_compile( enum radeon_family family, unsigned dump) { + unsigned r; + struct radeon_llvm_binary binary; const char * gpu_family = r600_llvm_gpu_string(family); - return radeon_llvm_compile(mod, inst_bytes, inst_byte_count, - gpu_family, dump); + r = radeon_llvm_compile(mod, &binary, gpu_family, dump); + *inst_bytes = binary.code; + *inst_byte_count = binary.code_size; + return r; } #endif |