Add flags to check whether tests are supported
authorSebastiano Cucinotta <sebastiano.cucinotta@arm.com>
Thu, 20 Jun 2019 13:14:13 +0000 (15:14 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 27 Jun 2019 07:33:51 +0000 (03:33 -0400)
The function checkSupport was not receiving all the required testFlags,
which led the application to run not supported tests.

Affects:

dEQP-VK.draw.shader_draw_parameters.draw_index.*

Components: Vulkan

VK-GL-CTS issue: 1838

Change-Id: I0a89afe4c5e56d255a18a39c410ef4f1fe95b210

external/vulkancts/modules/vulkan/draw/vktDrawShaderDrawParametersTests.cpp

index 100b46b..4b120d2 100644 (file)
@@ -359,7 +359,7 @@ void addDrawCase (tcu::TestCaseGroup* group, const DrawTest::TestSpec testSpec,
        if (flags & TEST_FLAG_INSTANCED)                name << "_instanced";
        if (flags & TEST_FLAG_FIRST_INSTANCE)   name << "_first_instance";
 
-       group->addChild(new InstanceFactory<DrawTest, FunctionSupport1<TestFlags>>(group->getTestContext(), name.str(), "", addFlags(testSpec, flags), FunctionSupport1<TestFlags>::Args(checkSupport, flags)));
+       group->addChild(new InstanceFactory<DrawTest, FunctionSupport1<TestFlags>>(group->getTestContext(), name.str(), "", addFlags(testSpec, flags), FunctionSupport1<TestFlags>::Args(checkSupport, testSpec.flags | flags)));
 }
 
 }      // anonymous