Don't enable SwiftShader on Linux platforms if X11 is not available

Compilation currently requires <xcb/xcb.h>

Bug: chromium:1266550, b:209030951
Change-Id: I2d0b6a36fc252bc141aaac26059b4d8f3150f635
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/77300
Auto-Submit: Austin Eng <enga@chromium.org>
Reviewed-by: Loko Kung <lokokung@google.com>
Commit-Queue: Loko Kung <lokokung@google.com>
This commit is contained in:
Austin Eng 2022-01-20 00:15:57 +00:00 committed by Dawn LUCI CQ
parent 7c54a12ec0
commit 50e4140c11
1 changed files with 3 additions and 1 deletions

View File

@ -34,7 +34,9 @@ declare_args() {
# Enables SwiftShader as the fallback adapter. Requires dawn_swiftshader_dir
# to be set to take effect.
dawn_use_swiftshader = true
# TODO(crbug.com/1266550): Enable on Linux platforms without X11 (e.g. ChromeOS).
# Blocked on b/209030951
dawn_use_swiftshader = !is_linux || dawn_use_x11
}
declare_args() {