xf86drm: deprecate drmAvailable()

Signed-off-by: Simon Ser <contact@emersion.fr>
References: https://gitlab.freedesktop.org/mesa/drm/-/issues/113
This commit is contained in:
Simon Ser 2024-12-17 02:02:26 +01:00
parent e7d4b1df2d
commit c7684a957a

View file

@ -978,6 +978,11 @@ static int drmOpenMinor(int minor, int create, int type)
* *
* \return 1 if the DRM driver is loaded, 0 otherwise. * \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 * \internal
* Determine the presence of the kernel driver by attempting to open the 0 * Determine the presence of the kernel driver by attempting to open the 0
* minor and get version information. For backward compatibility with older * minor and get version information. For backward compatibility with older