egl: Fix DRI utility function compilation on macOS

Signed-off-by: Christoph Neuhauser <christoph.neuhauser@intel.com>
Tested-by: Yurii Kolesnykov <root@yurikoles.com>
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/13556
Fixes: e99446fc5e ("egl: Add EGL_EXT_device_query_name and EGL_EXT_device_persistent_id")
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/36495>
This commit is contained in:
Christoph Neuhauser 2025-07-31 13:23:24 +02:00 committed by Marge Bot
parent bdb9b50dc4
commit acbb2d018c

View file

@ -1058,6 +1058,7 @@ bool
dri_get_drm_device_info(const char *device_name, uint8_t *device_uuid, uint8_t *driver_uuid,
char **vendor_name, char **renderer_name, char **driver_name)
{
#ifdef HAVE_LIBDRM
struct pipe_loader_device *pldev;
struct pipe_screen *pscreen;
int fd;
@ -1095,4 +1096,7 @@ dri_get_drm_device_info(const char *device_name, uint8_t *device_uuid, uint8_t *
close(fd);
return true;
#else
return false;
#endif
}