diff options
Diffstat (limited to 'lib/mesa/src/amd/compiler/aco_scheduler.cpp')
-rw-r--r-- | lib/mesa/src/amd/compiler/aco_scheduler.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/mesa/src/amd/compiler/aco_scheduler.cpp b/lib/mesa/src/amd/compiler/aco_scheduler.cpp index f09781435..4ab13fe7c 100644 --- a/lib/mesa/src/amd/compiler/aco_scheduler.cpp +++ b/lib/mesa/src/amd/compiler/aco_scheduler.cpp @@ -679,7 +679,7 @@ schedule_SMEM(sched_ctx& ctx, Block* block, std::vector<RegisterDemand>& registe current->operands[0].size() == 4)) break; /* don't move descriptor loads below buffer loads */ - if (candidate->format == Format::SMEM && current->operands[0].size() == 4 && + if (candidate->isSMEM() && !candidate->operands.empty() && current->operands[0].size() == 4 && candidate->operands[0].size() == 2) break; |