panfrost/blend: Workaround a v7 implementation-detail

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10393>
This commit is contained in:
Alyssa Rosenzweig
2021-04-21 12:25:45 -04:00
committed by Marge Bot
parent 392bf00019
commit 613722e046
+5
View File
@@ -101,6 +101,11 @@ can_blend_constant(const struct panfrost_device *dev,
if (dev->arch == 6)
return false;
/* v7 only uses the constant from RT 0 (TODO: what if it's the same
* constant? or a constant is shared?) */
if (dev->arch == 7 && rt > 0)
return false;
unsigned first_constant = ffs(constant_mask) - 1;
float constant = state->constants[first_constant];