1d803f71bb
The port will switch to the newer version if hw context is available in the i915kms driver. - Get ride of WITH_NEW_XORG. - Use @comment in plist to ignore unwanted files in the stagedir, instead of trying to remove them in post-install. - Bump portrevision of 9.1.7 due to dependency changes. - Drop :keepla from USES=libtool. - Drop @dirrm[try] from plists - Give dri propper options, with pkg-help for additional information. - Make separate plist for dri for the different versions, the combined plist was headache inducing. - Add "workaround" patches to allow clang to build the dri port on i386 [1]. USE_GCC is now only needed for 8.x. - Add gbm port and USE_GL switch for it. PR: 192286 [1] Submitted by: Carlos Jacobo Puga Medina [1] Approved by: portmgr (bapt@) In collaberation with: dumbbell@ Obtained from: xorg-dev
37 lines
835 B
C
37 lines
835 B
C
--- ./src/gallium/targets/egl-static/egl.c.orig 2014-02-03 18:42:39.000000000 +0100
|
|
+++ ./src/gallium/targets/egl-static/egl.c 2014-02-15 21:11:55.000000000 +0100
|
|
@@ -29,9 +29,12 @@
|
|
#include "egldriver.h"
|
|
#include "egllog.h"
|
|
|
|
-#ifdef HAVE_LIBUDEV
|
|
+#if defined(HAVE_LIBUDEV)
|
|
#include <stdio.h> /* for sscanf */
|
|
#include <libudev.h>
|
|
+#elif defined(HAVE_LIBDEVQ)
|
|
+#include <libdevq.h>
|
|
+#include <stdlib.h>
|
|
#endif
|
|
|
|
#define DRIVER_MAP_GALLIUM_ONLY
|
|
@@ -108,6 +111,20 @@
|
|
return (*chip_id >= 0);
|
|
}
|
|
|
|
+#elif defined(HAVE_LIBDEVQ)
|
|
+
|
|
+static boolean
|
|
+drm_fd_get_pci_id(int fd, int *vendor_id, int *chip_id)
|
|
+{
|
|
+ int ret;
|
|
+
|
|
+ ret = devq_device_get_pciid_from_fd(fd, vendor_id, chip_id);
|
|
+ if (ret < 0)
|
|
+ return FALSE;
|
|
+
|
|
+ return TRUE;
|
|
+}
|
|
+
|
|
#elif defined(PIPE_OS_ANDROID) && !defined(_EGL_NO_DRM)
|
|
|
|
#include <xf86drm.h>
|