diff --git a/src/gallium/drivers/panfrost/pan_context.c b/src/gallium/drivers/panfrost/pan_context.c index e005a0a04bc..ed5b54a6443 100644 --- a/src/gallium/drivers/panfrost/pan_context.c +++ b/src/gallium/drivers/panfrost/pan_context.c @@ -179,6 +179,12 @@ panfrost_get_blend(struct panfrost_batch *batch, unsigned rti, struct panfrost_b return 0; } + /* On all architectures, we can disable writes for a blend descriptor, + * at which point the format doesn't matter. + */ + if (info.no_colour) + return 0; + /* On Bifrost and newer, we can also use fixed-function for opaque * output regardless of the format by configuring the appropriate * conversion descriptor in the internal blend descriptor. (Midgard