Commit 13fd988c by Geoff Lang Committed by Commit Bot

Vulkan: Add the Vulkan API to gpu_test_expectations.

BUG=angleproject:2161 Change-Id: I7eda4d654cd0c0bc55ff344c5927d738ce592fe4 Reviewed-on: https://chromium-review.googlesource.com/891839 Commit-Queue: Geoff Lang <geofflang@chromium.org> Reviewed-by: 's avatarJamie Madill <jmadill@chromium.org>
parent 6969132c
...@@ -163,7 +163,7 @@ void GPUTestConfig::set_build_type(int32_t build_type) { ...@@ -163,7 +163,7 @@ void GPUTestConfig::set_build_type(int32_t build_type) {
} }
void GPUTestConfig::set_api(int32_t api) { void GPUTestConfig::set_api(int32_t api) {
DCHECK_EQ(0, api & ~(kAPID3D9 | kAPID3D11 | kAPIGLDesktop | kAPIGLES)); DCHECK_EQ(0, api & ~(kAPID3D9 | kAPID3D11 | kAPIGLDesktop | kAPIGLES | kAPIVulkan));
api_ = api; api_ = api;
} }
......
...@@ -55,6 +55,7 @@ class GPU_EXPORT GPUTestConfig { ...@@ -55,6 +55,7 @@ class GPU_EXPORT GPUTestConfig {
kAPID3D11 = 1 << 1, kAPID3D11 = 1 << 1,
kAPIGLDesktop = 1 << 2, kAPIGLDesktop = 1 << 2,
kAPIGLES = 1 << 3, kAPIGLES = 1 << 3,
kAPIVulkan = 1 << 4,
}; };
GPUTestConfig(); GPUTestConfig();
......
...@@ -92,6 +92,7 @@ enum Token { ...@@ -92,6 +92,7 @@ enum Token {
kConfigD3D11, kConfigD3D11,
kConfigGLDesktop, kConfigGLDesktop,
kConfigGLES, kConfigGLES,
kConfigVulkan,
// expectation // expectation
kExpectationPass, kExpectationPass,
kExpectationFail, kExpectationFail,
...@@ -145,6 +146,7 @@ const TokenInfo kTokenData[] = { ...@@ -145,6 +146,7 @@ const TokenInfo kTokenData[] = {
{"d3d11", GPUTestConfig::kAPID3D11}, {"d3d11", GPUTestConfig::kAPID3D11},
{"opengl", GPUTestConfig::kAPIGLDesktop}, {"opengl", GPUTestConfig::kAPIGLDesktop},
{"gles", GPUTestConfig::kAPIGLES}, {"gles", GPUTestConfig::kAPIGLES},
{"vulkan", GPUTestConfig::kAPIVulkan},
{"pass", GPUTestExpectationsParser::kGpuTestPass}, {"pass", GPUTestExpectationsParser::kGpuTestPass},
{"fail", GPUTestExpectationsParser::kGpuTestFail}, {"fail", GPUTestExpectationsParser::kGpuTestFail},
{"flaky", GPUTestExpectationsParser::kGpuTestFlaky}, {"flaky", GPUTestExpectationsParser::kGpuTestFlaky},
...@@ -309,6 +311,7 @@ bool GPUTestExpectationsParser::ParseConfig( ...@@ -309,6 +311,7 @@ bool GPUTestExpectationsParser::ParseConfig(
case kConfigD3D11: case kConfigD3D11:
case kConfigGLDesktop: case kConfigGLDesktop:
case kConfigGLES: case kConfigGLES:
case kConfigVulkan:
case kConfigGPUDeviceID: case kConfigGPUDeviceID:
if (token == kConfigGPUDeviceID) { if (token == kConfigGPUDeviceID) {
if (!UpdateTestConfig(config, tokens[i], 0)) if (!UpdateTestConfig(config, tokens[i], 0))
...@@ -370,6 +373,7 @@ bool GPUTestExpectationsParser::ParseLine( ...@@ -370,6 +373,7 @@ bool GPUTestExpectationsParser::ParseLine(
case kConfigD3D11: case kConfigD3D11:
case kConfigGLDesktop: case kConfigGLDesktop:
case kConfigGLES: case kConfigGLES:
case kConfigVulkan:
case kConfigGPUDeviceID: case kConfigGPUDeviceID:
// MODIFIERS, could be in any order, need at least one. // MODIFIERS, could be in any order, need at least one.
if (stage != kLineParserConfigs && stage != kLineParserBugID) { if (stage != kLineParserConfigs && stage != kLineParserBugID) {
...@@ -523,6 +527,7 @@ bool GPUTestExpectationsParser::UpdateTestConfig(GPUTestConfig* config, ...@@ -523,6 +527,7 @@ bool GPUTestExpectationsParser::UpdateTestConfig(GPUTestConfig* config,
case kConfigD3D11: case kConfigD3D11:
case kConfigGLDesktop: case kConfigGLDesktop:
case kConfigGLES: case kConfigGLES:
case kConfigVulkan:
if ((config->api() & kTokenData[token].flag) != 0) { if ((config->api() & kTokenData[token].flag) != 0) {
PushErrorMessage(kErrorMessage[kErrorEntryWithAPIConflicts], PushErrorMessage(kErrorMessage[kErrorEntryWithAPIConflicts],
line_number); line_number);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment