Mesa (master): panfrost: Disable tiled formats on SFBD systems

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Jul 25 13:35:57 UTC 2019


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

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Wed Jul 24 08:41:04 2019 -0700

panfrost: Disable tiled formats on SFBD systems

Just because we don't have the format codes to render to them yet.

Signed-off-by: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>

---

 src/gallium/drivers/panfrost/pan_resource.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/gallium/drivers/panfrost/pan_resource.c b/src/gallium/drivers/panfrost/pan_resource.c
index 31c7a062ebf..71da383d4c7 100644
--- a/src/gallium/drivers/panfrost/pan_resource.c
+++ b/src/gallium/drivers/panfrost/pan_resource.c
@@ -378,7 +378,9 @@ panfrost_resource_create_bo(struct panfrost_screen *screen, struct panfrost_reso
         bool is_2d = res->depth0 == 1 && res->array_size == 1;
         bool is_streaming = (res->usage != PIPE_USAGE_STREAM);
 
-        bool should_tile = is_streaming && is_texture && is_2d;
+        /* TODO: Reenable tiling on SFBD systems when we support rendering to
+         * tiled formats with SFBD */
+        bool should_tile = is_streaming && is_texture && is_2d && !screen->require_sfbd;
 
         /* Depth/stencil can't be tiled, only linear or AFBC */
         should_tile &= !(res->bind & PIPE_BIND_DEPTH_STENCIL);




More information about the mesa-commit mailing list