diff options
-rw-r--r-- | src/panfrost/midgard/midgard_schedule.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/panfrost/midgard/midgard_schedule.c b/src/panfrost/midgard/midgard_schedule.c index d4239157ead..a78bb901b43 100644 --- a/src/panfrost/midgard/midgard_schedule.c +++ b/src/panfrost/midgard/midgard_schedule.c @@ -415,7 +415,7 @@ mir_adjust_constants(midgard_instruction *ins, /* If the constant is new, check ourselves */ for (unsigned j = 0; j < i; ++j) { - if (constants[j] == constants[i]) { + if (constants[j] == constants[i] && (mask & (1 << j))) { ok = true; break; } |