panfrost: Don't advertise MSAA on Bifrost

Not yet supported and rather broken.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7206>
This commit is contained in:
Alyssa Rosenzweig 2020-10-22 10:57:39 -04:00 committed by Marge Bot
parent f0e65805cb
commit 3cdca1514f

View file

@ -436,6 +436,7 @@ panfrost_is_format_supported( struct pipe_screen *screen,
unsigned bind)
{
struct panfrost_device *dev = pan_device(screen);
bool is_bifrost = (dev->quirks & IS_BIFROST);
const struct util_format_description *format_desc;
assert(target == PIPE_BUFFER ||
@ -463,6 +464,10 @@ panfrost_is_format_supported( struct pipe_screen *screen,
if (MAX2(sample_count, 1) != MAX2(storage_sample_count, 1))
return false;
/* Don't advertise multisampling on Bifrost yet */
if (is_bifrost && sample_count > 1)
return false;
/* Don't confuse poorly written apps (workaround dEQP bug) that expect
* more alpha than they ask for */