[PATCH libdrm] tests/nouveau/threaded: adapt ioctl signature for DragonFly

2020-04-23 Thread François Tigeot
DragonFly uses (int, unsigned long int, ...) like GLIBC and FreeBSD. Signed-off-by: François Tigeot --- tests/nouveau/threaded.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/nouveau/threaded.c b/tests/nouveau/threaded.c index ddbac74e..6a12c1f3 100644 --- a/tests

[PATCH libdrm 2/2] libdrm: Use DRM_IOCTL_GET_PCIINFO on DragonFly

2018-12-12 Thread François Tigeot
It is a cleaner and less fragile way to get PCI IDs than the one currently used by local DPorts patches. Signed-off-by: François Tigeot --- xf86drm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/xf86drm.c b/xf86drm.c index 5ddf9366..6db1ab96 100644 --- a/xf86drm.c

[PATCH libdrm 1/2] xf86drm: implement drmParseSubsystemType for DragonFly

2018-12-12 Thread François Tigeot
Like on OpenBSD, the DragonFly BSD kernel only contains pci drm drivers. Signed-off-by: François Tigeot --- xf86drm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xf86drm.c b/xf86drm.c index 0085bf17..5ddf9366 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -3016,7 +3016,7

[PATCH libdrm] libdrm: Fix drmNodeIsDRM() on DragonFly

2018-12-11 Thread François Tigeot
name really points to a drm device and always return true Signed-off-by: François Tigeot --- xf86drm.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xf86drm.c b/xf86drm.c index 71ad54ba..0085bf17 100644 --- a/xf86drm.c +++ b/xf86drm.c @@ -2778,6 +2778,8 @@ static bool drmNodeIsDRM(int maj

[PATCH] drm.h: Handle DragonFly like Linux

2016-05-14 Thread François Tigeot
The drm code in DragonFly uses a local Linux implementation which doesn't define the __linux__ macro. Use __DragonFly__ instead in order to not try to compile non-Linux code. --- include/uapi/drm/drm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/uapi/drm/drm.h b/in

[PATCH libdrm] drm: Implement drmCheckModesettingSupported() for DragonFly

2014-07-26 Thread François Tigeot
For the sake of simplicity, KMS support can always be considered present on DragonFly. If some particular version doesn't support KMS yet, appropriate checks are already done in Dports's x11-drivers/ Makefiles and KMS-enabled driver packages don't get built. Signed-off-by: Fran?ois Tigeot --- x

[PATCH] Enable libkms by default on DragonFly

2014-02-17 Thread François Tigeot
Signed-off-by: Fran?ois Tigeot --- configure.ac | 1 + 1 file changed, 1 insertion(+) diff --git a/configure.ac b/configure.ac index d2d19d6..b7eef96 100644 --- a/configure.ac +++ b/configure.ac @@ -187,6 +187,7 @@ if test "x$LIBKMS" = xauto ; then linux*) LIBKMS="yes" ;;