diff options
author | Tom Stellard <[email protected]> | 2013-04-23 20:08:57 -0700 |
---|---|---|
committer | Tom Stellard <[email protected]> | 2013-04-24 12:42:41 -0400 |
commit | f64058803ad43e360ffaa5f14763485f4cac0158 (patch) | |
tree | 46a8c123c76e4dbbaf2fdbf6f8a6707ccc090b84 /src/gallium/drivers/r600/r600_llvm.c | |
parent | e29525f79fdb62993e14a4bc87a9e0955b838de0 (diff) |
r600g/llvm: Pass struct r600_bytecode to r600_llvm_compile
This way we don't need to update the function signature everytime we
emit a new config value. This also fixes the build with
--enable-opencl.
Diffstat (limited to 'src/gallium/drivers/r600/r600_llvm.c')
-rw-r--r-- | src/gallium/drivers/r600/r600_llvm.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gallium/drivers/r600/r600_llvm.c b/src/gallium/drivers/r600/r600_llvm.c index 8344fb02509..2050be26df8 100644 --- a/src/gallium/drivers/r600/r600_llvm.c +++ b/src/gallium/drivers/r600/r600_llvm.c @@ -555,8 +555,7 @@ unsigned r600_llvm_compile( unsigned char ** inst_bytes, unsigned * inst_byte_count, enum radeon_family family, - unsigned *ngpr, - unsigned *stack_size, + struct r600_bytecode *bc, unsigned dump) { unsigned r; @@ -565,8 +564,8 @@ 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); - *stack_size = util_le32_to_cpu(*(uint32_t*)binary.config + 4); + bc->ngpr = util_le32_to_cpu(*(uint32_t*)binary.config); + bc->nstack = util_le32_to_cpu(*(uint32_t*)(binary.config + 4)); return r; } |