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 <joshua@froggi.es>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/10702>
This commit is contained in:
Mike Blumenkrantz 2021-02-03 17:27:39 -05:00 committed by Marge Bot
parent 291aff3fcb
commit edd06995d7

View file

@ -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);