[test] Update VideoViewTests_gbm include ordering. - This fixes the include ordering to match with other instances of using VulkanBackend.h like AdapterEnumerationTests.cpp to avoid compilation errors as a result of some X11 related defines for common names, i.e. Always. Bug: 548727821 Change-Id: Ife3ce146f8175caf36e9ef7f818256ad4811072e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/335695 Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Kai Ninomiya <kainino@chromium.org> Commit-Queue: David Neto <dneto@google.com> Reviewed-by: David Neto <dneto@google.com> Commit-Queue: Loko Kung <lokokung@google.com> Auto-Submit: Loko Kung <lokokung@google.com>
diff --git a/src/dawn/tests/end2end/VideoViewsTests_gbm.cpp b/src/dawn/tests/end2end/VideoViewsTests_gbm.cpp index ab42388..981b4e7 100644 --- a/src/dawn/tests/end2end/VideoViewsTests_gbm.cpp +++ b/src/dawn/tests/end2end/VideoViewsTests_gbm.cpp
@@ -30,6 +30,11 @@ #include <utility> #include <vector> +// This must be above VulkanBackend.h otherwise vulkan.h will be included before we can wrap it with +// vulkan_platform.h. +#include "src/dawn/common/vulkan_platform.h" + +// Must come after vulkan_platform #include "dawn/native/VulkanBackend.h" #include "src/dawn/common/DRMUtils.h" #include "src/dawn/tests/GBMUtils.h"