libdrm: add prime fd->handle and handle->fd interfaces These are just basic ioctl wrappers around the prime ioctls, along with the capability reporting. Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Fix compilation with -Werror=int-to-pointer-cast -Werror=pointer-to-int-cast Signed-off-by: Jeremy Huddleston <jeremyhu@apple.com>
libdrm: oops fix get cap return value.
Implement drmGetCap() to query device/driver capabilities Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drm: don't do the create the node ourselves if we have udev. this can remove nodes it shouldn't, let udev run the show. this is needed for reliably GPU switch. Signed-off-by: Dave Airlie <airlied@redhat.com>
s/drmStrdup/strdup/ _DRM_MALLOC hasn't been a relevant concern since we split libdrm out from xserver. Signed-off-by: Adam Jackson <ajax@redhat.com>
libdrm: Fix PCI domain domain support This works in conjunction with newer kernels. If we succeed in requesting interface 1.4, the we know the kernel provides proper domain numbers. If not, ignore the domain number as it's bogus (except on Alpha). Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Signed-off-by: Adam Jackson <ajax@redhat.com>
Be less chatty in drmSetMaster/drmDropMaster
Correctly set DRM_MAX_MINOR for all platforms. DRM_MAJOR is platform specific, but not used outside of xf86drm.c that I can find.
Add drmGetDeviceNameFromFd function Determines the /dev filename of the drm fd argument.
Move libdrm/ up one level