diff --git a/shell/platform/fuchsia/flutter/vulkan_surface.cc b/shell/platform/fuchsia/flutter/vulkan_surface.cc index dc640c84f1f6f..69bb592edebce 100644 --- a/shell/platform/fuchsia/flutter/vulkan_surface.cc +++ b/shell/platform/fuchsia/flutter/vulkan_surface.cc @@ -508,7 +508,7 @@ void VulkanSurface::Reset() { VkFence fence = command_buffer_fence_; if (command_buffer_) { - VK_CALL_LOG_ERROR(vulkan_provider_.vk().WaitForFences( + VK_CALL_LOG_FATAL(vulkan_provider_.vk().WaitForFences( vulkan_provider_.vk_device(), 1, &fence, VK_TRUE, UINT64_MAX)); command_buffer_.reset(); } diff --git a/vulkan/procs/vulkan_interface.h b/vulkan/procs/vulkan_interface.h index 2d01ed72b7143..c0518bc256920 100644 --- a/vulkan/procs/vulkan_interface.h +++ b/vulkan/procs/vulkan_interface.h @@ -26,15 +26,19 @@ #include -#define VK_CALL_LOG_ERROR(expression) \ - ({ \ - __typeof__(expression) _rc = (expression); \ - if (_rc != VK_SUCCESS) { \ - FML_LOG(INFO) << "Vulkan call '" << #expression \ - << "' failed with error " \ - << vulkan::VulkanResultToString(_rc); \ - } \ - _rc; \ +#define VK_CALL_LOG_ERROR(expression) VK_CALL_LOG(expression, ERROR) + +#define VK_CALL_LOG_FATAL(expression) VK_CALL_LOG(expression, FATAL) + +#define VK_CALL_LOG(expression, severity) \ + ({ \ + __typeof__(expression) _rc = (expression); \ + if (_rc != VK_SUCCESS) { \ + FML_LOG(severity) << "Vulkan call '" << #expression \ + << "' failed with error " \ + << vulkan::VulkanResultToString(_rc); \ + } \ + _rc; \ }) namespace vulkan {