mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-06 06:40:08 +01:00
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:
parent
291aff3fcb
commit
edd06995d7
1 changed files with 3 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue