[CP][Impeller] report application version info as 2.0 (#168086)

Cherry pick of https://github.com/flutter/flutter/pull/167961
This commit is contained in:
Jonah Williams 2025-04-30 14:11:35 -07:00 committed by GitHub
parent 3bd718ee44
commit a5ca02f31c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -205,7 +205,18 @@ void ContextVK::Setup(Settings settings) {
} }
vk::ApplicationInfo application_info; vk::ApplicationInfo application_info;
application_info.setApplicationVersion(VK_API_VERSION_1_0);
// Use the same encoding macro as vulkan versions, but otherwise application
// version is intended to be the version of the Impeller engine. This version
// information, along with the application name below is provided to allow
// IHVs to make optimizations and/or disable functionality based on knowledge
// of the engine version (for example, to work around bugs). We don't tie this
// to the overall Flutter version as that version is not yet defined when the
// engine is compiled. Instead we can manually bump it occassionally.
//
// variant, major, minor, patch
application_info.setApplicationVersion(
VK_MAKE_API_VERSION(0, 2, 0, 0) /*version 2.0.0*/);
application_info.setApiVersion(VK_API_VERSION_1_1); application_info.setApiVersion(VK_API_VERSION_1_1);
application_info.setEngineVersion(VK_API_VERSION_1_0); application_info.setEngineVersion(VK_API_VERSION_1_0);
application_info.setPEngineName("Impeller"); application_info.setPEngineName("Impeller");