From 731d06010d571b104fea7df4a5d5407b24152ec0 Mon Sep 17 00:00:00 2001 From: PixelyIon Date: Fri, 11 Mar 2022 21:34:51 +0530 Subject: [PATCH] Set `eMutableFormat` in Texture Image Creation We often need to alias the underlying data as multiple Vulkan formats which requires the `eMutableFormat` bit to be set in `VkImageCreateInfo`, without doing this there'll be validation layer errors and potentially GPU bugs. --- app/src/main/cpp/skyline/gpu/texture/texture.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/cpp/skyline/gpu/texture/texture.cpp b/app/src/main/cpp/skyline/gpu/texture/texture.cpp index 58958cd3..ba362914 100644 --- a/app/src/main/cpp/skyline/gpu/texture/texture.cpp +++ b/app/src/main/cpp/skyline/gpu/texture/texture.cpp @@ -307,6 +307,7 @@ namespace skyline::gpu { usage |= vk::ImageUsageFlagBits::eDepthStencilAttachment; vk::ImageCreateInfo imageCreateInfo{ + .flags = vk::ImageCreateFlagBits::eMutableFormat, .imageType = guest->dimensions.GetType(), .format = *guest->format, .extent = guest->dimensions,