diff options
author | Feng Chen <vonchenplus@gmail.com> | 2023-03-10 08:06:56 +0100 |
---|---|---|
committer | FengChen <vonchenplus@gmail.com> | 2023-03-10 14:48:50 +0100 |
commit | c8ad0396120e2a1af029a819927b0a3c82a0e64e (patch) | |
tree | 647d4401e72ef61c3be75a1209412fda2db8d8aa /src/video_core/renderer_vulkan | |
parent | Merge pull request #9916 from liamwhite/fpu (diff) | |
download | yuzu-c8ad0396120e2a1af029a819927b0a3c82a0e64e.tar yuzu-c8ad0396120e2a1af029a819927b0a3c82a0e64e.tar.gz yuzu-c8ad0396120e2a1af029a819927b0a3c82a0e64e.tar.bz2 yuzu-c8ad0396120e2a1af029a819927b0a3c82a0e64e.tar.lz yuzu-c8ad0396120e2a1af029a819927b0a3c82a0e64e.tar.xz yuzu-c8ad0396120e2a1af029a819927b0a3c82a0e64e.tar.zst yuzu-c8ad0396120e2a1af029a819927b0a3c82a0e64e.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r-- | src/video_core/renderer_vulkan/maxwell_to_vk.cpp | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp index ca52e2389..5dce51be8 100644 --- a/src/video_core/renderer_vulkan/maxwell_to_vk.cpp +++ b/src/video_core/renderer_vulkan/maxwell_to_vk.cpp @@ -166,7 +166,7 @@ struct FormatTuple { {VK_FORMAT_R16G16_UINT, Attachable | Storage}, // R16G16_UINT {VK_FORMAT_R16G16_SINT, Attachable | Storage}, // R16G16_SINT {VK_FORMAT_R16G16_SNORM, Attachable | Storage}, // R16G16_SNORM - {VK_FORMAT_UNDEFINED}, // R32G32B32_FLOAT + {VK_FORMAT_R32G32B32_SFLOAT}, // R32G32B32_FLOAT {VK_FORMAT_A8B8G8R8_SRGB_PACK32, Attachable}, // A8B8G8R8_SRGB {VK_FORMAT_R8G8_UNORM, Attachable | Storage}, // R8G8_UNORM {VK_FORMAT_R8G8_SNORM, Attachable | Storage}, // R8G8_SNORM @@ -234,11 +234,6 @@ FormatInfo SurfaceFormat(const Device& device, FormatType format_type, bool with PixelFormat pixel_format) { ASSERT(static_cast<size_t>(pixel_format) < std::size(tex_format_tuples)); FormatTuple tuple = tex_format_tuples[static_cast<size_t>(pixel_format)]; - if (tuple.format == VK_FORMAT_UNDEFINED) { - UNIMPLEMENTED_MSG("Unimplemented texture format with pixel format={}", pixel_format); - return FormatInfo{VK_FORMAT_A8B8G8R8_UNORM_PACK32, true, true}; - } - // Use A8B8G8R8_UNORM on hardware that doesn't support ASTC natively if (!device.IsOptimalAstcSupported() && VideoCore::Surface::IsPixelFormatASTC(pixel_format)) { const bool is_srgb = with_srgb && VideoCore::Surface::IsPixelFormatSRGB(pixel_format); |