Commit 9a4dab8b by Chris Forbes Committed by Alexis Hétu

Also return extension function pointers from GIPA

Device functions can be queried through GIPA. There is no device to check for enabled extensions here, so return anything that is supported. Test: dEQP-VK.wsi.* Change-Id: I3be086b4cd0ad6f5e80595aa4401a424780333d2 Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/31749 Presubmit-Ready: Alexis Hétu <sugoi@google.com> Reviewed-by: 's avatarAlexis Hétu <sugoi@google.com> Tested-by: 's avatarChris Forbes <chrisforbes@google.com> Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
parent 352791e3
...@@ -343,6 +343,15 @@ PFN_vkVoidFunction GetInstanceProcAddr(VkInstance instance, const char* pName) ...@@ -343,6 +343,15 @@ PFN_vkVoidFunction GetInstanceProcAddr(VkInstance instance, const char* pName)
{ {
return deviceFunction->second; return deviceFunction->second;
} }
for(const auto& deviceExtensionFunctions : deviceExtensionFunctionPointers)
{
deviceFunction = deviceExtensionFunctions.second.find(std::string(pName));
if(deviceFunction != deviceExtensionFunctions.second.end())
{
return deviceFunction->second;
}
}
} }
return nullptr; return nullptr;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment