Skip to content

panfrost: Fix dual-source blending

Christian Duerr requested to merge chrisduerr/mesa:panfrost_dsb into main

What does this MR do and why?

panfrost: Fix dual-source blending

This changes the maximum draw buffers to 1 for dual-source colors,
following the implementation of other drivers (zink/llvmpipe).

Fixes mesa/mesa#9487.

If the patch isn't obvious enough, I'm not entirely sure what I'm doing. But I noticed this being handled differently in zink/llvmpipe and testing it on my device showed that this does indeed fix the issue.

I've also noticed that asahi does it the same way panfrost does it right now, so that might be indication that this is not the proper way to fix this?

Merge request reports