summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar liamwhite2023-12-26 11:45:33 -0500
committerGravatar GitHub2023-12-26 11:45:33 -0500
commit14dc41d4b331fffc7def584d65ead4aae6c1c118 (patch)
treeadcefc69361723789c5b9e864c5c04af5794aa6a /src
parentMerge pull request #12415 from ameerj/ogl-draw-auto (diff)
parentrenderer_vulkan: demote format assert to error log (diff)
downloadyuzu-14dc41d4b331fffc7def584d65ead4aae6c1c118.tar.gz
yuzu-14dc41d4b331fffc7def584d65ead4aae6c1c118.tar.xz
yuzu-14dc41d4b331fffc7def584d65ead4aae6c1c118.zip
Merge pull request #12448 from liamwhite/format-assert
renderer_vulkan: demote format assert to error log
Diffstat (limited to 'src')
-rw-r--r--src/video_core/vulkan_common/vulkan_device.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/video_core/vulkan_common/vulkan_device.cpp b/src/video_core/vulkan_common/vulkan_device.cpp
index a6fbca69e..727bbd98d 100644
--- a/src/video_core/vulkan_common/vulkan_device.cpp
+++ b/src/video_core/vulkan_common/vulkan_device.cpp
@@ -755,10 +755,10 @@ VkFormat Device::GetSupportedFormat(VkFormat wanted_format, VkFormatFeatureFlags
755 // The wanted format is not supported by hardware, search for alternatives 755 // The wanted format is not supported by hardware, search for alternatives
756 const VkFormat* alternatives = GetFormatAlternatives(wanted_format); 756 const VkFormat* alternatives = GetFormatAlternatives(wanted_format);
757 if (alternatives == nullptr) { 757 if (alternatives == nullptr) {
758 ASSERT_MSG(false, 758 LOG_ERROR(Render_Vulkan,
759 "Format={} with usage={} and type={} has no defined alternatives and host " 759 "Format={} with usage={} and type={} has no defined alternatives and host "
760 "hardware does not support it", 760 "hardware does not support it",
761 wanted_format, wanted_usage, format_type); 761 wanted_format, wanted_usage, format_type);
762 return wanted_format; 762 return wanted_format;
763 } 763 }
764 764
@@ -774,10 +774,10 @@ VkFormat Device::GetSupportedFormat(VkFormat wanted_format, VkFormatFeatureFlags
774 } 774 }
775 775
776 // No alternatives found, panic 776 // No alternatives found, panic
777 ASSERT_MSG(false, 777 LOG_ERROR(Render_Vulkan,
778 "Format={} with usage={} and type={} is not supported by the host hardware and " 778 "Format={} with usage={} and type={} is not supported by the host hardware and "
779 "doesn't support any of the alternatives", 779 "doesn't support any of the alternatives",
780 wanted_format, wanted_usage, format_type); 780 wanted_format, wanted_usage, format_type);
781 return wanted_format; 781 return wanted_format;
782} 782}
783 783