if a resource is used multiple times with different samplers then this can result
in conflicting layouts, so it's better to just use the general case here
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9348>
hash_data = &sampler_view->image_view;
data_size = sizeof(VkImageView);
hash = XXH32(hash_data, data_size, hash);
- VkImageLayout layout;
- if (util_format_is_depth_and_stencil(sampler_view->base.format))
- layout = VK_IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL;
- else
- layout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL;
+ VkImageLayout layout = VK_IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL;
hash_data = &layout;
data_size = sizeof(VkImageLayout);
sampler_view->hash = XXH32(hash_data, data_size, hash);