Fix VK version selection in version_check.entry_points test
authorSlawomir Cygan <slawomir.cygan@intel.com>
Wed, 11 Oct 2017 12:17:25 +0000 (14:17 +0200)
committerAlexander Galazin <Alexander.Galazin@arm.com>
Wed, 11 Oct 2017 17:13:04 +0000 (13:13 -0400)
The test was validating only VK1.0 entrypoints due to wrong
version check.

Components: Vulkan
VK-GL-CTS Issue: 764
Affects: dEQP-VK.api.version_check.entry_points

Change-Id: Id555746f79d40c06cc8a95013608f9a1928847e2

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

index a4eecc2..a1c7e1a 100644 (file)
@@ -119,7 +119,7 @@ public:
                ApisMap::const_iterator                         lastGoodVersion = functions.begin();
                for (ApisMap::const_iterator it = lastGoodVersion; it != functions.end(); ++it)
                {
-                       if (it->first < m_context.getUsedApiVersion())
+                       if (it->first <= m_context.getUsedApiVersion())
                                lastGoodVersion = it;
                }
                failChecking(log, failsQuantity, lastGoodVersion->second);