Skip to content

Commit 38b37a7

Browse files
authored
Enable vulkan (#11)
1 parent cd11e42 commit 38b37a7

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

engine/src/build_overrides/vulkan_headers.gni

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
# set anything.
77

88
if (is_linux) {
9-
vulkan_use_x11 = true
9+
vulkan_use_x11 = false
1010
vulkan_use_wayland = true
1111
}

engine/src/flutter/impeller/tools/args.gni

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ declare_args() {
1717
enable_unittests) && target_os != "fuchsia"
1818

1919
# Whether the Vulkan backend is enabled.
20-
impeller_enable_vulkan = (is_win || is_android || is_mac ||
20+
impeller_enable_vulkan = (is_linux || is_win || is_android || is_mac ||
2121
enable_unittests) && target_os != "fuchsia"
2222
}
2323

engine/src/flutter/shell/config.gni

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ declare_args() {
77

88
# The logic for enabling Vulkan and Metal is in tools/gn.
99
shell_enable_metal = false
10-
shell_enable_vulkan = false
10+
shell_enable_vulkan = true
1111

1212
shell_enable_software = true
1313
}

engine/src/flutter/tools/gn

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -599,7 +599,7 @@ def to_gn_args(args):
599599
# Enable Vulkan on all platforms except for iOS. This is just
600600
# to save on mobile binary size, as there's no reason the Vulkan embedder
601601
# features can't work on these platforms.
602-
if gn_args['target_os'] not in ['ios', 'mac', 'linux']:
602+
if gn_args['target_os'] not in ['ios', 'mac']:
603603
gn_args['skia_use_vulkan'] = True
604604
gn_args['skia_use_vma'] = False
605605
gn_args['shell_enable_vulkan'] = True

0 commit comments

Comments
 (0)