mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 02:20:15 +01:00
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:
parent
e7d4b1df2d
commit
c7684a957a
1 changed files with 5 additions and 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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue