forked from firka/flutter
Get the vulkan backend working again (flutter/engine#39103)
* Enable Vulkan to be developed on macOS host * Disables modern features as SSBOs are wired on Vulkan yet. * Sub-optimal presentation mode must not be a fatal issue. * Allow for shader outputs not to be consumed. * remove enabling macOS
This commit is contained in:
@@ -40,6 +40,12 @@ VKAPI_ATTR VkBool32 VKAPI_CALL DebugUtilsMessengerCallback(
|
||||
const auto prefix = impeller::vk::to_string(
|
||||
impeller::vk::DebugUtilsMessageSeverityFlagBitsEXT{severity});
|
||||
|
||||
// There isn't stable messageIdNumber for this validation failure.
|
||||
if (strstr(pCallbackData->pMessageIdName,
|
||||
"CoreValidation-Shader-OutputNotConsumed") != nullptr) {
|
||||
return VK_FALSE;
|
||||
}
|
||||
|
||||
FML_DCHECK(false) << prefix << "[" << pCallbackData->messageIdNumber << "]["
|
||||
<< pCallbackData->pMessageIdName
|
||||
<< "] : " << pCallbackData->pMessage;
|
||||
@@ -596,7 +602,7 @@ PixelFormat ContextVK::GetColorAttachmentPixelFormat() const {
|
||||
}
|
||||
|
||||
const BackendFeatures& ContextVK::GetBackendFeatures() const {
|
||||
return kModernBackendFeatures;
|
||||
return kLegacyBackendFeatures;
|
||||
}
|
||||
|
||||
vk::Queue ContextVK::GetGraphicsQueue() const {
|
||||
|
||||
@@ -74,7 +74,7 @@ vk::PresentModeKHR SwapchainDetailsVK::PickPresentationMode() const {
|
||||
}
|
||||
}
|
||||
|
||||
VALIDATION_LOG << "Picking a sub-optimal presentation mode.";
|
||||
FML_LOG(ERROR) << "Picking a sub-optimal presentation mode.";
|
||||
// Vulkan spec dictates that FIFO is always available.
|
||||
return vk::PresentModeKHR::eFifo;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user