gallium/dri: Guard DRI driver global variables on MacOS if Zink is enabled.

Protect the DRI galliumdrm_driver_api and galliumdrm_driver_extensions variables from __APPLE__ builds, as DRI2 cannot be enabled.

Reviewed-by: Erik Faye-Lund <erik.faye-lund@collabora.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11129>
This commit is contained in:
Duncan Hopkins 2021-06-03 15:32:29 +01:00 committed by Marge Bot
parent 18e8ec5f37
commit 3102892fb8
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ DEFINE_LOADER_DRM_ENTRYPOINT(sun4i_drm)
DEFINE_LOADER_DRM_ENTRYPOINT(lima)
#endif
#if defined(GALLIUM_ZINK)
#if defined(GALLIUM_ZINK) && !defined(__APPLE__)
DEFINE_LOADER_DRM_ENTRYPOINT(zink);
#endif