dawn-cmake/scripts
Brian Ho 858f93b86f Disable Vulkan validation layers on Chrome OS
An earlier CL [1] enabled Vulkan validation layers on Linux which
also enables validation layers on Chrome OS. Unfortunately, this
changes breaks the Chrome OS build of Dawn:

.../vulkan.h:63:10: fatal error: 'xcb/xcb.h' file not found

This is because including the validation layers also includes
the Vulkan-Headers repo which has a BUILD file that defines
VK_USE_PLATFORM_XCB_KHR [2]. XCB (and all of X11, for that matter)
is not supported on Chrome OS even though it is a Linux platform.

This is a quick fix for the problem to unbreak the BUILD, but I
think we should discuss what a long-term fix looks like. Do we send
a patch to Khronos to add an "is_chromeos" branch to their BUILD
file a la Fuchsia?

Also, as mentioned by cwallez@ in a different CL of mine, we should
really set up a Chrome OS trybot to catch these earlier. I can
assign a bug to myself for that!

[1] https://dawn-review.googlesource.com/c/dawn/+/13787
[2] https://github.com/KhronosGroup/Vulkan-Headers/blob/master/BUILD.gn#L23

Change-Id: Ic5fb4fa7990cc2232a7416145877e24b10a2a7b6
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/13880
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Brian Ho <hob@chromium.org>
2019-11-20 20:31:31 +00:00
..
dawn_component.gni Remove unneeded GN config removal after generated file cleanup 2019-10-17 15:51:38 +00:00
dawn_features.gni Disable Vulkan validation layers on Chrome OS 2019-11-20 20:31:31 +00:00
dawn_overrides_with_defaults.gni Add Vulkan validation layers on Windows 2019-11-07 12:13:27 +00:00
git-clang-format Add travis hook to check formatting 2017-11-28 16:18:39 -05:00
lint_clang_format.sh PRESUBMIT.py: Add formatting checks. 2018-09-11 08:06:36 -04:00
perf_test_runner.py Add Dawn perf test harness 2019-08-28 23:18:10 +00:00
roll-shaderc-deps.sh Add shaderc to DEPS to roll in script 2019-06-27 15:35:14 +00:00
standalone.gclient Add new dependencies to gitignore and fix gclient url. 2018-10-01 18:02:04 +00:00
travis_lint_format.sh PRESUBMIT.py: Add formatting checks. 2018-09-11 08:06:36 -04:00