aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRhys Perry <[email protected]>2020-04-21 17:09:00 +0100
committerMarge Bot <[email protected]>2020-04-23 12:39:33 +0000
commitb497b774a5008c5c424b05cdbc3f4e96a6765912 (patch)
tree2c2ec2806d2712540844d4309d050edfa3218507
parent2dc550202e82c5da198ad0a416a5d24dd89addd8 (diff)
aco: remove copy in load_input_from_temps()
Signed-off-by: Rhys Perry <[email protected]> Reviewed-by: Timur Kristóf <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4667>
-rw-r--r--src/amd/compiler/aco_instruction_selection.cpp5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp
index 7a42bee0f70..31a5e410e9f 100644
--- a/src/amd/compiler/aco_instruction_selection.cpp
+++ b/src/amd/compiler/aco_instruction_selection.cpp
@@ -3768,11 +3768,8 @@ bool load_input_from_temps(isel_context *ctx, nir_intrinsic_instr *instr, Temp d
unsigned idx = nir_intrinsic_base(instr) + nir_intrinsic_component(instr) + 4 * nir_src_as_uint(*off_src);
Temp *src = &ctx->inputs.temps[idx];
- Temp vec = create_vec_from_array(ctx, src, dst.size(), dst.regClass().type(), 4u);
- assert(vec.size() == dst.size());
+ create_vec_from_array(ctx, src, dst.size(), dst.regClass().type(), 4u, 0, dst);
- Builder bld(ctx->program, ctx->block);
- bld.copy(Definition(dst), vec);
return true;
}