panfrost: Enable MSAA on bifrost when deqp debug option is set

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7653>
This commit is contained in:
Boris Brezillon 2020-11-17 09:32:40 +01:00
parent fc93eb7281
commit 4d0cd48fab

View file

@ -436,6 +436,7 @@ panfrost_is_format_supported( struct pipe_screen *screen,
{
struct panfrost_device *dev = pan_device(screen);
bool is_bifrost = (dev->quirks & IS_BIFROST);
bool is_deqp = dev->debug & PAN_DBG_DEQP;
const struct util_format_description *format_desc;
assert(target == PIPE_BUFFER ||
@ -464,7 +465,7 @@ panfrost_is_format_supported( struct pipe_screen *screen,
return false;
/* Don't advertise multisampling on Bifrost yet */
if (is_bifrost && sample_count > 1)
if ((is_bifrost && !is_deqp) && sample_count > 1)
return false;
/* Z16 causes dEQP failures on t720 */