Mesa (master): gallium/radeon: simplify radeon_llvm_emit_fetch for direct array addressing
Nicolai Hähnle
nh at kemper.freedesktop.org
Wed Aug 17 10:11:30 UTC 2016
Module: Mesa
Branch: master
Commit: 87fa7cea23ee9e83f8cdb2561b061590f610d192
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=87fa7cea23ee9e83f8cdb2561b061590f610d192
Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date: Mon Aug 8 19:52:46 2016 +0200
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 <thomas.stellard at amd.com>
Reviewed-by: Marek Olšák <marek.olsak at amd.com>
---
src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c | 5 -----
1 file changed, 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 41f24d3..e084248 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;
More information about the mesa-commit
mailing list