summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-08-08 19:54:53 +0200
committerNicolai Hähnle <[email protected]>2016-08-17 12:11:22 +0200
commiteacfc86d839f4c65bc9f269578fb9f2fd32de003 (patch)
treec135dcdc0f1e6e51ecf79d319f3649ec1c401256 /src
parent87fa7cea23ee9e83f8cdb2561b061590f610d192 (diff)
gallium/radeon: simplify radeon_llvm_emit_store 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.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
index e084248920b..7b96a5847b5 100644
--- a/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
+++ b/src/gallium/drivers/radeon/radeon_setup_tgsi_llvm.c
@@ -631,16 +631,9 @@ void radeon_llvm_emit_store(struct lp_build_tgsi_context *bld_base,
case TGSI_FILE_TEMPORARY:
{
- LLVMValueRef array;
if (reg->Register.Index >= ctx->temps_count)
continue;
- array = get_alloca_for_array(bld_base, reg->Register.File, reg->Register.Index);
- if (array) {
- store_value_to_array(bld_base, value, reg->Register.File, chan_index, reg->Register.Index,
- NULL);
- continue;
- }
temp_ptr = ctx->temps[ TGSI_NUM_CHANNELS * reg->Register.Index + chan_index];
if (tgsi_type_is_64bit(dtype))
temp_ptr2 = ctx->temps[ TGSI_NUM_CHANNELS * reg->Register.Index + chan_index + 1];