mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-24 23:00:11 +01:00
drm: use drmIoctl everywhere
Well just core drm. All the other callers in there that still use direct calls to ioctl have some custom retry logic already, so should be good already. All the other offenders (tests, freedreno/kgsl, ...) don't really matter (e.g. kgsl is the blob library and so not a drm thing) or are again special exceptions with their own retry loops. Reviewed-by: Emil Velikov <emil.l.velikov@gmail.com> Reviewed-by: Rob Clark <robdclark@gmail.com> Signed-off-by: Daniel Vetter <daniel.vetter@intel.com>
This commit is contained in:
parent
7e0460c6d4
commit
80834b377e
1 changed files with 2 additions and 2 deletions
|
|
@ -2543,12 +2543,12 @@ void drmCloseOnce(int fd)
|
|||
|
||||
int drmSetMaster(int fd)
|
||||
{
|
||||
return ioctl(fd, DRM_IOCTL_SET_MASTER, 0);
|
||||
return drmIoctl(fd, DRM_IOCTL_SET_MASTER, 0);
|
||||
}
|
||||
|
||||
int drmDropMaster(int fd)
|
||||
{
|
||||
return ioctl(fd, DRM_IOCTL_DROP_MASTER, 0);
|
||||
return drmIoctl(fd, DRM_IOCTL_DROP_MASTER, 0);
|
||||
}
|
||||
|
||||
char *drmGetDeviceNameFromFd(int fd)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue