From edd06995d75ca9bb9bbde5d5ea7fe916314351d0 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Wed, 3 Feb 2021 17:27:39 -0500 Subject: [PATCH] zink: never use LINEAR for VK_EXT_4444_formats we shouldn't be reading these back, and some drivers lie about what features are supported in linear tiling anyway Reviewed-by: Joshua Ashton Part-of: --- src/gallium/drivers/zink/zink_resource.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gallium/drivers/zink/zink_resource.c b/src/gallium/drivers/zink/zink_resource.c index 25442d0d615..7817003befc 100644 --- a/src/gallium/drivers/zink/zink_resource.c +++ b/src/gallium/drivers/zink/zink_resource.c @@ -347,7 +347,9 @@ create_ici(struct zink_screen *screen, const struct pipe_resource *templ, unsign templ->target == PIPE_TEXTURE_CUBE_ARRAY) ici.arrayLayers *= 6; - if (templ->usage == PIPE_USAGE_STAGING) + if (templ->usage == PIPE_USAGE_STAGING && + templ->format != PIPE_FORMAT_B4G4R4A4_UNORM && + templ->format != PIPE_FORMAT_B4G4R4A4_UINT) ici.tiling = VK_IMAGE_TILING_LINEAR; ici.usage = get_image_usage(screen, ici.tiling, templ, bind);