diff options
author | Simon Ser <contact@emersion.fr> | 2024-12-17 02:02:26 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2025-01-09 14:08:03 +0000 |
commit | c7684a957aa7dc98fbf8e595256b81d7de17cef8 (patch) | |
tree | 4a79eae9ba4f1000966815ffd7c22125a2d69f95 | |
parent | e7d4b1df2d3f675b478897ab454d635e9b4eb915 (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.c | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -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 |