Module: Mesa Branch: master Commit: 87fa7cea23ee9e83f8cdb2561b061590f610d192 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=87fa7cea23ee9e83f8cdb2561b061590f610d192
Author: Nicolai Hähnle <[email protected]> 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 <[email protected]> Reviewed-by: Marek Olšák <[email protected]> --- 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; _______________________________________________ mesa-commit mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/mesa-commit
