zink: be less picky about tiled resources
authorErik Faye-Lund <erik.faye-lund@collabora.com>
Mon, 23 Sep 2019 20:00:12 +0000 (22:00 +0200)
committerMarge Bot <eric+marge@anholt.net>
Thu, 16 Apr 2020 09:57:25 +0000 (09:57 +0000)
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/2678>

src/gallium/drivers/zink/zink_resource.c

index 3d1462bfd3f023d26ab4ceb754861d72837cf333..e8073b459880bd0638c90d7dadb960231e40cd60 100644 (file)
@@ -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;