Mesa (master): panfrost: Resource management for linear 2D texture arrays

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Jun 17 15:37:42 UTC 2019


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

Author: Alyssa Rosenzweig <alyssa.rosenzweig at collabora.com>
Date:   Fri Jun 14 16:31:14 2019 -0700

panfrost: Resource management for linear 2D texture arrays

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

---

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

diff --git a/src/gallium/drivers/panfrost/pan_resource.c b/src/gallium/drivers/panfrost/pan_resource.c
index b9d0e931ae7..ac83f38b327 100644
--- a/src/gallium/drivers/panfrost/pan_resource.c
+++ b/src/gallium/drivers/panfrost/pan_resource.c
@@ -286,7 +286,7 @@ panfrost_create_bo(struct panfrost_screen *screen, const struct pipe_resource *t
         /* Tiling textures is almost always faster, unless we only use it once */
 
         bool is_texture = (template->bind & PIPE_BIND_SAMPLER_VIEW);
-        bool is_2d = template->depth0 == 1;
+        bool is_2d = template->depth0 == 1 && template->array_size == 1;
         bool is_streaming = (template->usage != PIPE_USAGE_STREAM);
 
         bool should_tile = is_streaming && is_texture && is_2d;
@@ -329,6 +329,7 @@ panfrost_resource_create(struct pipe_screen *screen,
                 case PIPE_TEXTURE_3D:
                 case PIPE_TEXTURE_CUBE:
                 case PIPE_TEXTURE_RECT:
+                case PIPE_TEXTURE_2D_ARRAY:
                         break;
                 default:
                         DBG("Unknown texture target %d\n", template->target);




More information about the mesa-commit mailing list