summaryrefslogtreecommitdiff
diff options
authorSimon Ser <contact@emersion.fr>2024-12-17 02:02:26 +0100
committerSimon Ser <contact@emersion.fr>2025-01-09 14:08:03 +0000
commitc7684a957aa7dc98fbf8e595256b81d7de17cef8 (patch)
tree4a79eae9ba4f1000966815ffd7c22125a2d69f95
parente7d4b1df2d3f675b478897ab454d635e9b4eb915 (diff)
xf86drm: deprecate drmAvailable()
Signed-off-by: Simon Ser <contact@emersion.fr> References: https://gitlab.freedesktop.org/mesa/drm/-/issues/113
-rw-r--r--xf86drm.c5
1 files changed, 5 insertions, 0 deletions
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
close