panvk: Don't create MS2SS views for internal views

We never use MS2SS from meta.

Reviewed-by: Faith Ekstrand <faith.ekstrand@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/39324>
This commit is contained in:
Christoph Pillmayer 2026-02-25 10:49:17 -05:00 committed by Marge Bot
parent c015759629
commit 05326726a9

View file

@ -268,6 +268,10 @@ create_ms_views(struct panvk_device *dev, struct panvk_image_view *view,
const VkImageViewCreateInfo *pCreateInfo,
const VkAllocationCallbacks *pAllocator)
{
/* Don't create extra views for internal views. */
if (pCreateInfo->flags & VK_IMAGE_VIEW_CREATE_DRIVER_INTERNAL_BIT_MESA)
return;
struct panvk_image *source_img =
panvk_image_from_handle(vk_image_to_handle(view->vk.image));
const VkImage *target_images = source_img->ms_imgs;