Fix image.qualifiers.restrict tests not running without optional capability
authorSlawomir Cygan <slawomir.cygan@intel.com>
Thu, 27 Apr 2017 12:17:41 +0000 (14:17 +0200)
committerPyry Haulos <phaulos@google.com>
Wed, 3 May 2017 17:53:51 +0000 (13:53 -0400)
Tests dEQP-VK.image.qualifiers* were passsing previously, but since
645b5c6d they require shaderStorageImageReadWithoutFormat capability.
This was not intended - this change restores the test to previous
behavior.

VK-GL-CTS issue: 345
Components: Vulkan
Affects: dEQP-VK.image.qualifiers.restrict.*

Change-Id: Ie3e70b72a9f3b3b0700c3fed898c30fd1f6ae290

external/vulkancts/modules/vulkan/image/vktImageLoadStoreTests.cpp

index 53fc5b5..89842f8 100644 (file)
@@ -1372,7 +1372,7 @@ de::MovePtr<TestCase> createImageQualifierRestrictCase (tcu::TestContext& testCt
 {
        const VkFormat format = VK_FORMAT_R32G32B32A32_UINT;
        const Texture& texture = getTestTexture(imageType);
-       return de::MovePtr<TestCase>(new LoadStoreTest(testCtx, name, "", texture, format, format, LoadStoreTest::FLAG_RESTRICT_IMAGES));
+       return de::MovePtr<TestCase>(new LoadStoreTest(testCtx, name, "", texture, format, format, LoadStoreTest::FLAG_RESTRICT_IMAGES | LoadStoreTest::FLAG_DECLARE_IMAGE_FORMAT_IN_SHADER));
 }
 
 } // image