diff options
author | Marek Olšák <[email protected]> | 2015-05-26 15:35:10 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2015-05-29 11:52:44 +0200 |
commit | 7afc992c20a94883b876fe53e155b9fec6e5fb27 (patch) | |
tree | fd1e776010f34f3df741d3447602251dda6e4bd9 /src/gallium/drivers/radeon/radeon_llvm.h | |
parent | 065978d36b8a8ba5aa23248c6bcd0f0e4d6e86de (diff) |
radeon/llvm: don't use a static array size for radeon_llvm_context::arrays (v2)
v2: - don't use realloc (tgsi_shader_info provides the size)
Reviewed-by: Michel Dänzer <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/radeon_llvm.h')
-rw-r--r-- | src/gallium/drivers/radeon/radeon_llvm.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gallium/drivers/radeon/radeon_llvm.h b/src/gallium/drivers/radeon/radeon_llvm.h index 8612ef8daf7..6a9557b0b73 100644 --- a/src/gallium/drivers/radeon/radeon_llvm.h +++ b/src/gallium/drivers/radeon/radeon_llvm.h @@ -33,7 +33,6 @@ #define RADEON_LLVM_MAX_INPUTS 32 * 4 #define RADEON_LLVM_MAX_OUTPUTS 32 * 4 -#define RADEON_LLVM_MAX_ARRAYS 16 #define RADEON_LLVM_INITIAL_CF_DEPTH 4 @@ -130,8 +129,7 @@ struct radeon_llvm_context { unsigned loop_depth; unsigned loop_depth_max; - struct tgsi_declaration_range arrays[RADEON_LLVM_MAX_ARRAYS]; - unsigned num_arrays; + struct tgsi_declaration_range *arrays; LLVMValueRef main_fn; |