mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
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@amd.com> Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
eb50cbf3bd
commit
87fa7cea23
1 changed files with 0 additions and 5 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue