diff --git a/engine/src/flutter/shell/platform/fuchsia/flutter/vulkan_surface_producer.cc b/engine/src/flutter/shell/platform/fuchsia/flutter/vulkan_surface_producer.cc index a32d50e360..c7345d9163 100644 --- a/engine/src/flutter/shell/platform/fuchsia/flutter/vulkan_surface_producer.cc +++ b/engine/src/flutter/shell/platform/fuchsia/flutter/vulkan_surface_producer.cc @@ -63,9 +63,13 @@ bool VulkanSurfaceProducer::Initialize(scenic::Session* scenic_session) { std::vector extensions = { VK_KHR_EXTERNAL_SEMAPHORE_CAPABILITIES_EXTENSION_NAME, }; + + // On Fuchsia, the validation layers need to be packaged as part of the + // flutter_runner in order to work. As a result, we can use the presence + // of the layers to mean that we want the layers enabled. application_ = std::make_unique( *vk_, "FlutterRunner", std::move(extensions), VK_MAKE_VERSION(1, 0, 0), - VK_MAKE_VERSION(1, 1, 0)); + VK_MAKE_VERSION(1, 1, 0), true /* enable_validation_layers */); if (!application_->IsValid() || !vk_->AreInstanceProcsSetup()) { // Make certain the application instance was created and it setup the