Browse Source
Merge pull request #12448 from liamwhite/format-assert
renderer_vulkan: demote format assert to error log
pull/15/merge
liamwhite
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
8 additions and
8 deletions
-
src/video_core/vulkan_common/vulkan_device.cpp
|
|
|
@ -755,7 +755,7 @@ VkFormat Device::GetSupportedFormat(VkFormat wanted_format, VkFormatFeatureFlags |
|
|
|
// The wanted format is not supported by hardware, search for alternatives
|
|
|
|
const VkFormat* alternatives = GetFormatAlternatives(wanted_format); |
|
|
|
if (alternatives == nullptr) { |
|
|
|
ASSERT_MSG(false, |
|
|
|
LOG_ERROR(Render_Vulkan, |
|
|
|
"Format={} with usage={} and type={} has no defined alternatives and host " |
|
|
|
"hardware does not support it", |
|
|
|
wanted_format, wanted_usage, format_type); |
|
|
|
@ -774,7 +774,7 @@ VkFormat Device::GetSupportedFormat(VkFormat wanted_format, VkFormatFeatureFlags |
|
|
|
} |
|
|
|
|
|
|
|
// No alternatives found, panic
|
|
|
|
ASSERT_MSG(false, |
|
|
|
LOG_ERROR(Render_Vulkan, |
|
|
|
"Format={} with usage={} and type={} is not supported by the host hardware and " |
|
|
|
"doesn't support any of the alternatives", |
|
|
|
wanted_format, wanted_usage, format_type); |
|
|
|
|