Mesa (master): panfrost: Re-enable AFBC on 3D, 2D arrays

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jan 12 22:58:59 UTC 2021


Module: Mesa
Branch: master
Commit: 3dcc9eb48a65220069d77310187a8a2d3258a8ad
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=3dcc9eb48a65220069d77310187a8a2d3258a8ad

Author: Boris Brezillon <boris.brezillon at collabora.com>
Date:   Tue Jan 12 09:00:59 2021 +0100

panfrost: Re-enable AFBC on 3D, 2D arrays

Things have now been fixed and AFBC on 3D/2D-arrays seems to work fine.

Signed-off-by: Boris Brezillon <boris.brezillon at collabora.com>
Reviewed-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8449>

---

 src/gallium/drivers/panfrost/pan_resource.c | 8 ++------
 1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/src/gallium/drivers/panfrost/pan_resource.c b/src/gallium/drivers/panfrost/pan_resource.c
index 88d296bb62e..24b7c85e9a0 100644
--- a/src/gallium/drivers/panfrost/pan_resource.c
+++ b/src/gallium/drivers/panfrost/pan_resource.c
@@ -534,6 +534,7 @@ panfrost_should_afbc(struct panfrost_device *dev, const struct panfrost_resource
 
         switch (pres->base.target) {
         case PIPE_TEXTURE_2D:
+        case PIPE_TEXTURE_2D_ARRAY:
         case PIPE_TEXTURE_RECT:
                 break;
 
@@ -543,12 +544,7 @@ panfrost_should_afbc(struct panfrost_device *dev, const struct panfrost_resource
                 if (dev->arch < 7)
                         return false;
 
-                /* fallthrough */
-        case PIPE_TEXTURE_2D_ARRAY:
-                /* Both 3D and 2D arrays are having issues on dEQP-GLES3, hide
-                 * support until these bugs can be sorted so we don't introduce
-                 * flakes */
-                return false;
+                break;
 
         default:
                 return false;



More information about the mesa-commit mailing list