From c7684a957aa7dc98fbf8e595256b81d7de17cef8 Mon Sep 17 00:00:00 2001 From: Simon Ser Date: Tue, 17 Dec 2024 02:02:26 +0100 Subject: [PATCH] xf86drm: deprecate drmAvailable() Signed-off-by: Simon Ser References: https://gitlab.freedesktop.org/mesa/drm/-/issues/113 --- xf86drm.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/xf86drm.c b/xf86drm.c index 6ca56263..22214417 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -978,6 +978,11 @@ static int drmOpenMinor(int minor, int create, int type) * * \return 1 if the DRM driver is loaded, 0 otherwise. * + * \deprecated + * This function doesn't work when a device goes away (as is often the case + * with simpledrm). drmGetDevices2 should be used instead to enumerate DRM + * devices. + * * \internal * Determine the presence of the kernel driver by attempting to open the 0 * minor and get version information. For backward compatibility with older