From: Daniel Schürmann Date: Fri, 12 Jun 2020 10:59:27 +0000 (+0100) Subject: aco: fix shared subdword loads X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1f98d8c804094fcda1c607234433f2ba2be2cf07;p=mesa.git aco: fix shared subdword loads Shared subdword loads don't need byte alignment as they are split into multiple loads if necessary. Fixes: 5cde4989d3c8c25b0ba2a11ec450625e30092b16 ('aco: remove unnecessary split- and create_vector instructions for subdword loads') Reviewed-by: Rhys Perry Part-of: --- diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index ffe5f2e4619..38bf449c83b 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -3192,7 +3192,7 @@ void emit_load(isel_context *ctx, Builder& bld, const LoadEmitInfo *info) } /* shift result right if needed */ - if (info->component_size < 4) { + if (info->component_size < 4 && byte_align_loads) { Operand align((uint32_t)byte_align); if (byte_align == -1) { if (offset.isConstant())