summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-08-08 19:52:46 +0200
committerNicolai Hähnle <[email protected]>2016-08-17 12:11:22 +0200
commit87fa7cea23ee9e83f8cdb2561b061590f610d192 (patch)
treeb1e0b27f0d93be67938c688bf9af5e1fec4c49d9 /src
parenteb50cbf3bdf74086f956f88b52c636c5c157643a (diff)
gallium/radeon: simplify radeon_llvm_emit_fetch for direct array addressing
We can use the pointer stored in the temps array directly. Reviewed-by: Tom Stellard <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
index 41f24d3653d..e084248920b 100644
--- a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
+++ b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
@@ -359,11 +359,6 @@ LLVMValueRef radeon_llvm_emit_fetch(struct lp_build_tgsi_context *bld_base,
LLVMBuildLoad(builder, ptr, ""),
LLVMBuildLoad(builder, ptr2, ""));
}
- LLVMValueRef array = get_alloca_for_array(bld_base, reg->Register.File, reg->Register.Index);
- if (array) {
- return bitcast(bld_base, type, load_value_from_array(bld_base, reg->Register.File, type,
- swizzle, reg->Register.Index, NULL));
- }
result = LLVMBuildLoad(builder, ptr, "");
break;