Mesa (master): zink: be less picky about tiled resources

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Thu Apr 16 10:17:10 UTC 2020


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

Author: Erik Faye-Lund <erik.faye-lund at collabora.com>
Date:   Mon Sep 23 22:00:12 2019 +0200

zink: be less picky about tiled resources

Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2678>

---

 src/gallium/drivers/zink/zink_resource.c | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c
index 3d1462bfd3f..e8073b45988 100644
--- a/src/gallium/drivers/zink/zink_resource.c
+++ b/src/gallium/drivers/zink/zink_resource.c
@@ -179,12 +179,8 @@ resource_create(struct pipe_screen *pscreen,
           templ->target == PIPE_TEXTURE_CUBE_ARRAY)
          ici.arrayLayers *= 6;
 
-      if (templ->bind & (PIPE_BIND_DISPLAY_TARGET |
-                         PIPE_BIND_SCANOUT |
-                         PIPE_BIND_SHARED)) {
-         // assert(ici.tiling == VK_IMAGE_TILING_LINEAR);
+      if (templ->bind & PIPE_BIND_SHARED)
          ici.tiling = VK_IMAGE_TILING_LINEAR;
-      }
 
       if (templ->usage == PIPE_USAGE_STAGING)
          ici.tiling = VK_IMAGE_TILING_LINEAR;



More information about the mesa-commit mailing list