From 13d9c0f556182c237e8874466f5056e1886ec998 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Sharma?= <737941+loic-sharma@users.noreply.github.com> Date: Tue, 1 Nov 2022 15:14:48 -0700 Subject: [PATCH] Roll ANGLE, vulkan-deps, and shaderc (flutter/engine#36389) This change updates ANGLE to a version that contains [angle#3906325](https://chromium-review.googlesource.com/c/angle/angle/+/3906325), which fixes the COM error reported in https://github.com/flutter/flutter/issues/110948. This also updates vulkan-deps and shaderc as these are dependencies of ANGLE. Part of https://github.com/flutter/flutter/issues/110948 --- DEPS | 6 +++--- .../src/flutter/ci/licenses_golden/tool_signature | 2 +- engine/src/flutter/tools/gn | 13 ++++++++++--- engine/src/flutter/tools/licenses/lib/patterns.dart | 2 +- 4 files changed, 15 insertions(+), 8 deletions(-) diff --git a/DEPS b/DEPS index 833b861719..6796ced0a7 100644 --- a/DEPS +++ b/DEPS @@ -142,10 +142,10 @@ deps = { Var('fuchsia_git') + '/third_party/glfw' + '@' + '78e6a0063d27ed44c2c4805606309744f6fb29fc', 'src/third_party/shaderc': - Var('github_git') + '/google/shaderc.git' + '@' + '948660cccfbbc303d2590c7f44a4cee40b66fdd6', + Var('github_git') + '/google/shaderc.git' + '@' + '7ea834ecc59258a5c13c3d3e6fa0582bdde7c543', 'src/third_party/vulkan-deps': - Var('chromium_git') + '/vulkan-deps' + '@' + '9bb79e503dd5f60d14d46712d51bda9c9dd8f2d3', + Var('chromium_git') + '/vulkan-deps' + '@' + 'afc444a0f49a09f67b3dc63ddcd14e2031466ffa', 'src/third_party/flatbuffers': Var('github_git') + '/google/flatbuffers.git' + '@' + '0a80646371179f8a7a5c1f42c31ee1d44dcf6709', @@ -474,7 +474,7 @@ deps = { Var('swiftshader_git') + '/SwiftShader.git' + '@' + 'bea8d2471bd912220ba59032e0738f3364632657', 'src/third_party/angle': - Var('chromium_git') + '/angle/angle.git' + '@' + '3faaded8234b31dea24c929e40e33089a34a9aa5', + Var('chromium_git') + '/angle/angle.git' + '@' + '094b49db60cb48ee932a875898b57accbfa656de', 'src/third_party/vulkan_memory_allocator': Var('chromium_git') + '/external/github.com/GPUOpen-LibrariesAndSDKs/VulkanMemoryAllocator' + '@' + '7de5cc00de50e71a3aab22dea52fbb7ff4efceb6', diff --git a/engine/src/flutter/ci/licenses_golden/tool_signature b/engine/src/flutter/ci/licenses_golden/tool_signature index 0a4b054260..30b974e105 100644 --- a/engine/src/flutter/ci/licenses_golden/tool_signature +++ b/engine/src/flutter/ci/licenses_golden/tool_signature @@ -1,2 +1,2 @@ -Signature: ebfee4cf8fc59213ae6efbc0c13dc6c8 +Signature: 960c777bbc4aed25629fa86a8d7bf10b diff --git a/engine/src/flutter/tools/gn b/engine/src/flutter/tools/gn index b41036145c..678bca26cf 100755 --- a/engine/src/flutter/tools/gn +++ b/engine/src/flutter/tools/gn @@ -335,12 +335,17 @@ def to_gn_args(args): gn_args['host_cpu'] = cpu gn_args['target_cpu'] = cpu - # macOS host builds (whether x64 or arm64) must currently be built under - # Rosetta on Apple Silicon Macs. - # TODO(cbracken): https://github.com/flutter/flutter/issues/103386 if is_host_build(args) and gn_args['host_os'] == 'mac': + # macOS host builds (whether x64 or arm64) must currently be built under + # Rosetta on Apple Silicon Macs. + # TODO(cbracken): https://github.com/flutter/flutter/issues/103386 gn_args['host_cpu'] = 'x64' + # macOS unit tests include Vulkan headers which reference Metal types + # introduced in macOS 10.14. + gn_args['mac_sdk_min'] = '10.14' + gn_args['mac_deployment_target'] = '10.14.0' + # macOS target builds (whether x64 or arm64) must currently be built under # Rosetta on Apple Silicon Macs. # TODO(cbracken): https://github.com/flutter/flutter/issues/103386 @@ -554,11 +559,13 @@ def to_gn_args(args): get_host_os() == 'win'): # Do not build unnecessary parts of the ANGLE tree. gn_args['angle_build_all'] = False + gn_args['angle_has_astc_encoder'] = False # Force ANGLE context checks on Windows to prevent crashes. # TODO(loic-sharma): Remove this once ANGLE crashes have been fixed. # https://github.com/flutter/flutter/issues/114107 if get_host_os() == 'win': gn_args['angle_force_context_check_every_call'] = True + # Requires RTTI. We may want to build this in debug modes, punting on that # for now. gn_args['angle_enable_vulkan_validation_layers'] = False diff --git a/engine/src/flutter/tools/licenses/lib/patterns.dart b/engine/src/flutter/tools/licenses/lib/patterns.dart index c467461939..4797236bc1 100644 --- a/engine/src/flutter/tools/licenses/lib/patterns.dart +++ b/engine/src/flutter/tools/licenses/lib/patterns.dart @@ -1649,7 +1649,7 @@ final List csLicenses = [ r'^(?:\1\2)?GNU General Public License for more details.\n' r'^(?:\1\2)?\n*' r'^(?:\1\2)?You should have received a copy of the GNU General Public License\n' - r'^(?:\1\2)?along with this program. If not, see . \*/\n' + r'^(?:\1\2)?along with this program. If not, see . \*/\n' r'^(?:\1\2)?\n*' + kIndent + r'As a special exception, you may create a larger work that contains\n'