From b5b25ee0327f65d837ff84f59b497232d52ec25d Mon Sep 17 00:00:00 2001 From: Erik Faye-Lund Date: Mon, 23 Sep 2019 22:00:12 +0200 Subject: [PATCH] zink: be less picky about tiled resources Part-of: --- 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; -- 2.30.2