mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-25 02:10:11 +01:00
aco: only use scalar loads for readonly buffers on SI/CI
Reviewed-by: Rhys Perry <pendingchaos02@gmail.com>
This commit is contained in:
parent
f27783a667
commit
b8783973cd
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue