Build and test ANGLE with Vulkan secondary CBs.

This will allow us to run tests with both permutations of
ANGLE (custom secondaries & Vulkan secondaries) in the same
build directory. It will also allow us to run these configs
as tests on our infra. This CL adds a few simple test to CI.

Bug: angleproject:6811
Change-Id: I053f8cc5bafc2a7ab7d0665da9301f0ba7f8417f
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4067806
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
Commit-Queue: Jamie Madill <jmadill@chromium.org>
This commit is contained in:
Jamie Madill
2022-11-30 14:24:13 -05:00
committed by Angle LUCI CQ
parent b432c84c2b
commit aaee3c23c1
19 changed files with 1978 additions and 258 deletions

View File

@@ -19,6 +19,12 @@
namespace
{
bool IsANGLE(angle::GLESDriverType driverType)
{
return driverType == angle::GLESDriverType::AngleEGL ||
driverType == angle::GLESDriverType::AngleVulkanSecondariesEGL;
}
constexpr EGLint kDefaultSwapInterval = 1;
} // anonymous namespace
@@ -280,8 +286,7 @@ bool EGLWindow::initializeDisplay(OSWindow *osWindow,
if (driverType == angle::GLESDriverType::SystemWGL)
return false;
if (driverType == angle::GLESDriverType::AngleEGL &&
strstr(extensionString, "EGL_ANGLE_platform_angle"))
if (IsANGLE(driverType) && strstr(extensionString, "EGL_ANGLE_platform_angle"))
{
mDisplay = eglGetPlatformDisplay(EGL_PLATFORM_ANGLE_ANGLE,
reinterpret_cast<void *>(osWindow->getNativeDisplay()),