mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 04:48:08 +02:00
aco: fix should_form_clause() for memory instructions without operands
In particular, this applies to s_memtime and s_memrealtime. Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/25676>
This commit is contained in:
parent
568f61787a
commit
8f16745821
1 changed files with 3 additions and 0 deletions
|
|
@ -1308,6 +1308,9 @@ should_form_clause(const Instruction* a, const Instruction* b)
|
|||
if (a->format != b->format)
|
||||
return false;
|
||||
|
||||
if (a->operands.empty() || b->operands.empty())
|
||||
return false;
|
||||
|
||||
/* Assume loads which don't use descriptors might load from similar addresses. */
|
||||
if (a->isFlatLike())
|
||||
return true;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue