summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-03-14 16:35:37 +0100
committerGitHub <noreply@github.com>2023-03-14 16:35:37 +0100
commit0c7149d222a42bbc4653f6e56af1e8b0f2a8017d (patch)
treee3b2f2d7ab921224b45c7794a7b62c6ea6a236d4 /src/video_core/renderer_vulkan
parentMerge pull request #9951 from Morph1984/save (diff)
parentvideo_core: Update texture format (diff)
downloadyuzu-0c7149d222a42bbc4653f6e56af1e8b0f2a8017d.tar
yuzu-0c7149d222a42bbc4653f6e56af1e8b0f2a8017d.tar.gz
yuzu-0c7149d222a42bbc4653f6e56af1e8b0f2a8017d.tar.bz2
yuzu-0c7149d222a42bbc4653f6e56af1e8b0f2a8017d.tar.lz
yuzu-0c7149d222a42bbc4653f6e56af1e8b0f2a8017d.tar.xz
yuzu-0c7149d222a42bbc4653f6e56af1e8b0f2a8017d.tar.zst
yuzu-0c7149d222a42bbc4653f6e56af1e8b0f2a8017d.zip
Diffstat (limited to 'src/video_core/renderer_vulkan')
-rw-r--r--src/video_core/renderer_vulkan/maxwell_to_vk.cpp7
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);