From: Daniel Schürmann Date: Wed, 6 Nov 2019 09:13:50 +0000 (+0100) Subject: aco: only use scalar loads for readonly buffers on SI/CI X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b8783973cdf765266dd6d65a37d45ad317c0aaee;p=mesa.git aco: only use scalar loads for readonly buffers on SI/CI Reviewed-by: Rhys Perry --- diff --git a/src/amd/compiler/aco_instruction_selection.cpp b/src/amd/compiler/aco_instruction_selection.cpp index 7d6e6d4435e..f63daa31bca 100644 --- a/src/amd/compiler/aco_instruction_selection.cpp +++ b/src/amd/compiler/aco_instruction_selection.cpp @@ -3313,7 +3313,7 @@ void load_buffer(isel_context *ctx, unsigned num_components, Temp dst, bool dlc = glc && ctx->options->chip_class >= GFX10; aco_opcode op; - if (dst.type() == RegType::vgpr || (glc && ctx->options->chip_class < GFX8)) { + if (dst.type() == RegType::vgpr || (ctx->options->chip_class < GFX8 && !readonly)) { if (ctx->options->chip_class < GFX8) offset = as_vgpr(ctx, offset);