mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 13:10:10 +01:00
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:
parent
bdb9b50dc4
commit
acbb2d018c
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue