zink: Added support for MacOS MoltenVK APIs.
authorDuncan Hopkins <duncan.hopkins@foundry.com>
Fri, 30 Oct 2020 10:01:42 +0000 (10:01 +0000)
committerMarge Bot <eric+marge@anholt.net>
Tue, 3 Nov 2020 16:15:33 +0000 (16:15 +0000)
commitc2cb2dd3bc68d0d61fa483a3927563bab08c93e9
tree89941ba0d7567435e3340bd2c1ca617929dd2ad4
parenta0f889bdadb18649742b9ac8553b3d08cd82e083
zink: Added support for MacOS MoltenVK APIs.

Detects the MoltenVK layer and extension.
If present, get the ext function pointers and use to enable full swizzeling suport.
Fixes issues with Swizzling behaviour fro MoltenVk is disabled by default and needed to be enable via this API.

This also supplied the ground work to allow IOSurfaces to be used later for surface passing.

Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7383>
src/gallium/drivers/zink/zink_screen.c
src/gallium/drivers/zink/zink_screen.h