gpu: vulkan: Make gpu::VulkanFunctionPointers independent of VK_USE_PLATFORM_*
Since b9adeda8 ("Use function pointers in Vulkan") vulkan_tests crashes on my system. The reason is that gpu::VulkanFunctionPointers has a different definition in different compilation units due different VK_USE_PLATFORM_* defines. We could export those defines, but since portable code has no business calling these extension functions, this moves the extension functions out of the public bindings instead. Keeping platform extensions internal also means that most code won't get the namespace pollution that Xlib inflicts just by including <vulkan/vulkan.h> (global macros defined by X11.h actually break later inclusion of gtest.h, for example). In order to make encapsulation of the X bits work, this also fixes a typo where we include vulkan_factory.cc instead of vulkan_factory.h. Bug: 851997 Test: vulkan_tests on X11 Change-Id: I4ebde71c68528595a3eb21be72c50d65c357a7af Reviewed-on: https://chromium-review.googlesource.com/1108504Reviewed-by:Antoine Labour <piman@chromium.org> Reviewed-by:
Chris Blume <cblume@chromium.org> Commit-Queue: Michael Spang <spang@chromium.org> Cr-Commit-Position: refs/heads/master@{#569072}
Showing
Please register or sign in to comment