From: Slawomir Cygan Date: Wed, 11 Oct 2017 12:17:25 +0000 (+0200) Subject: Fix VK version selection in version_check.entry_points test X-Git-Tag: upstream/1.3.5~2565^2~6^2~77 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=bfc03b151110f686396e9da16189d0424dc9bd70;p=platform%2Fupstream%2FVK-GL-CTS.git Fix VK version selection in version_check.entry_points test 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 --- diff --git a/external/vulkancts/modules/vulkan/api/vktApiVersionCheck.cpp b/external/vulkancts/modules/vulkan/api/vktApiVersionCheck.cpp index a4eecc2..a1c7e1a 100644 --- a/external/vulkancts/modules/vulkan/api/vktApiVersionCheck.cpp +++ b/external/vulkancts/modules/vulkan/api/vktApiVersionCheck.cpp @@ -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);