Skip createBuffer tests that exercise an invalid combination of create flags
authorJeff Bolz <jbolz@nvidia.com>
Thu, 14 Jan 2016 20:02:43 +0000 (20:02 +0000)
committerJeff Bolz <jbolz@nvidia.com>
Thu, 14 Jan 2016 20:13:14 +0000 (20:13 +0000)
external/vulkancts/modules/vulkan/api/vktApiBufferTests.cpp

index c7379a834eaee468a066beef9d54f3dc22ecc63e..7f98e8bf258ffa910aa9b06c900606078c825979 100644 (file)
@@ -281,6 +281,12 @@ tcu::TestStatus BufferTestInstance::iterate (void)
        {
                for (deUint32 combinedBufferUsageFlags = 1; combinedBufferUsageFlags <= maximumValueOfBufferUsageFlags; combinedBufferUsageFlags++)
                {
+                       if (combinedBufferCreateFlags == VK_BUFFER_CREATE_SPARSE_ALIASED_BIT)
+                       {
+                               // spec says: If flags contains VK_BUFFER_CREATE_SPARSE_ALIASED_BIT, it must also contain at least one of
+                               // VK_BUFFER_CREATE_SPARSE_BINDING_BIT or VK_BUFFER_CREATE_SPARSE_RESIDENCY_BIT
+                               continue;
+                       }
                        BufferCaseParameters    testParams =
                        {
                                combinedBufferUsageFlags,