From: Erik Faye-Lund Date: Mon, 23 Sep 2019 20:00:12 +0000 (+0200) Subject: zink: be less picky about tiled resources X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=b5b25ee0327f65d837ff84f59b497232d52ec25d;p=mesa.git zink: be less picky about tiled resources Part-of: --- 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;