Mesa (main): panfrost: Disable AFBC on Valhall

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Wed Mar 30 17:48:28 UTC 2022


Module: Mesa
Branch: main
Commit: ee9b63a7bbd1da817bff8cd2978b82a855a20abf
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=ee9b63a7bbd1da817bff8cd2978b82a855a20abf

Author: Alyssa Rosenzweig <alyssa at collabora.com>
Date:   Sun Jan  9 16:17:49 2022 -0500

panfrost: Disable AFBC on Valhall

Doesn't work yet. Kick the can down the road; I'd like to get textures
and FBOs working at all before worrying about compressing them.

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

---

 src/gallium/drivers/panfrost/pan_screen.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/gallium/drivers/panfrost/pan_screen.c b/src/gallium/drivers/panfrost/pan_screen.c
index 144792a7b28..6fa0d7e7ef4 100644
--- a/src/gallium/drivers/panfrost/pan_screen.c
+++ b/src/gallium/drivers/panfrost/pan_screen.c
@@ -850,6 +850,12 @@ panfrost_create_screen(int fd, struct renderonly *ro)
         if (dev->debug & PAN_DBG_NO_AFBC)
                 dev->has_afbc = false;
 
+        /* It's early days for Valhall support... disable AFBC for now to keep
+         * hardware bring-up simple
+         */
+        if (dev->arch >= 9)
+                dev->has_afbc = false;
+
         /* Bail early on unsupported hardware */
         if (dev->model == NULL) {
                 debug_printf("panfrost: Unsupported model %X", dev->gpu_id);



More information about the mesa-commit mailing list