xserver/hw/xwayland
Greg V 1ac389dda8 xwayland: use drmGetNodeTypeFromFd for checking if a node is a render one
Major/minor numbers are a.. major (ha) source of pain in FreeBSD porting.
In this case, Xwayland was thinking that /dev/dri/card0 is already a render node,
because the st_rdev on FreeBSD was passing the Linux-style check,
and because of the assumption, acceleration would fail because
various ioctls like AMDGPU_INFO would be denied on the non-render node.

Switch to libdrm's function that already works correctly on all platforms.

Signed-off-by: Greg V <greg@unrelenting.technology>
Reviewed-by: Emmanuel Vadot <manu@FreeBSD.org>
(cherry picked from commit 239ebdc9e4)
2020-10-01 08:29:01 +00:00
..
.gitignore glamor: Implement PixmapFromBuffers and BuffersFromPixmap 2018-03-05 13:27:49 -05:00
Makefile.am xwayland: Add glamor egl_backend for EGLStreams 2018-04-24 16:51:18 -04:00
drm.xml wayland: Sync drm.xml with Mesa 2017-07-05 10:13:04 -04:00
meson.build xwayland: Add glamor egl_backend for EGLStreams 2018-04-24 16:51:18 -04:00
xwayland-cursor.c xwayland: Reset scheduled frames after hiding tablet cursor 2019-06-06 11:48:13 +02:00
xwayland-cvt.c xwayland: Add hack for FWXGA resolution #99574 2017-02-08 12:32:16 -05:00
xwayland-glamor-eglstream.c glamor/xwayland: Define EGL_NO_X11 2019-11-05 08:12:03 -08:00
xwayland-glamor-gbm.c xwayland: use drmGetNodeTypeFromFd for checking if a node is a render one 2020-10-01 08:29:01 +00:00
xwayland-glamor-xv.c xwayland: use the lowercase xnf.*alloc API 2017-09-06 08:56:39 +10:00
xwayland-glamor.c glamor/xwayland: Define EGL_NO_X11 2019-11-05 08:12:03 -08:00
xwayland-input.c xwayland: Handle NULL xwl_seat in xwl_seat_can_emulate_pointer_warp 2020-08-18 04:12:09 +00:00
xwayland-output.c xwayland: Use a fixed DPI value for core protocol 2020-08-18 04:12:09 +00:00
xwayland-present.c xwayland: Check window pixmap in xwl_present_check_flip2 2020-09-30 15:06:30 +00:00
xwayland-shm.c xserver: Check the right HAVE_*_CONFIG_H. 2017-03-23 13:17:39 -04:00
xwayland-vidmode.c xwayland: Initialise values in xwlVidModeGetGamma() 2020-07-20 15:54:39 +02:00
xwayland.c xwayland: Do not discard frame callbacks on allow commits 2020-09-30 15:06:30 +00:00
xwayland.h xwayland: Hold a pixmap reference in struct xwl_present_event 2020-07-22 16:39:33 +00:00