Fix check of api features
authorLionel Landwerlin <lionel.g.landwerlin@intel.com>
Wed, 13 Nov 2019 16:04:22 +0000 (18:04 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Thu, 14 Nov 2019 09:47:36 +0000 (04:47 -0500)
Fixes the cherry pick 282341d2cf5da0d9aaea1547958eb54c3f84ee0f.

Compontents: Vulkan
Affects: dEQP-VK.api.info.get_physical_device_properties2.features

Change-Id: I1d102716767c7bef0b872a5ebe1eb1d77bcd11b5

external/vulkancts/modules/vulkan/api/vktApiFeatureInfo.cpp

index d9df06f..3aaac09 100644 (file)
@@ -2758,7 +2758,7 @@ tcu::TestStatus deviceFeatures2 (Context& context)
                variablePointerFeatures[ndx].pNext = &scalarBlockLayoutFeatures[ndx];
 
                scalarBlockLayoutFeatures[ndx].sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SCALAR_BLOCK_LAYOUT_FEATURES_EXT;
-               scalarBlockLayoutFeatures[ndx].pNext = &timelineSemaphoreFeatures;
+               scalarBlockLayoutFeatures[ndx].pNext = &timelineSemaphoreFeatures[ndx];
 
                timelineSemaphoreFeatures[ndx].sType                    = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_TIMELINE_SEMAPHORE_FEATURES_KHR;
                timelineSemaphoreFeatures[ndx].pNext                    = DE_NULL;