panfrost: Emulate indirect draws on Midgard
authorAlyssa Rosenzweig <alyssa@collabora.com>
Fri, 4 Jun 2021 23:18:23 +0000 (19:18 -0400)
committerMarge Bot <eric+marge@anholt.net>
Thu, 10 Jun 2021 18:06:10 +0000 (18:06 +0000)
I can't really justify spending time on this right now, even to myself.
So take the perf hit and get out checkbox.

Signed-off-by: Alyssa Rosenzweig <alyssa@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11123>

src/gallium/drivers/panfrost/pan_screen.c

index ad09654..d0d5889 100644 (file)
@@ -835,6 +835,10 @@ panfrost_create_screen(int fd, struct renderonly *ro)
         if (dev->arch == 7)
                 dev->quirks |= MIDGARD_NO_AFBC;
 
+        /* XXX: Indirect draws on Midgard need debugging, emulate for now */
+        if (dev->arch < 6)
+                dev->debug |= PAN_DBG_NOINDIRECT;
+
         dev->ro = ro;
 
         /* Check if we're loading against a supported GPU model. */