zink: disable shader images for intensity formats
Vulkan only allows identity remapping on storage images descriptors.
Fixes: 475c43cf8a ("zink: translate intensity formats")
Acked-by: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36199>
This commit is contained in:
@@ -1408,6 +1408,10 @@ zink_is_format_supported(struct pipe_screen *pscreen,
|
||||
if (bind & PIPE_BIND_SHADER_IMAGE &&
|
||||
!(props->optimalTilingFeatures & VK_FORMAT_FEATURE_STORAGE_IMAGE_BIT))
|
||||
return false;
|
||||
|
||||
/* Can't swizzle storage images. */
|
||||
if (bind & PIPE_BIND_SHADER_IMAGE && util_format_is_intensity(format))
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user