Revert "Add device enumeration interface (v4)"
PATCH 1/1 Revert "Add device enumeration interface (v4)"
This reverts commit fde4969176822fe54197b6baa78f8b0ef900baba.
The commit adds an API that does not seem flexible enough to be used in current open-source projects. Additionally it adds a hidden dependency of libudev, which when used in mesa caused grief when combined with Steam('s runtime).
Let's revert this for now and add a tweaked API later on that can be used in mesa/xserver.
Cc Frank Min <[email protected]>
Cc Christian König <[email protected]>
Cc Alex Deucher <[email protected]>
Cc Jammy Zhou <[email protected]>
--- Makefile.am | 7 ++--- xf86drm.c | 100 ------------------------------------------------------------ xf86drm.h | 19 ------------ 3 files changed, 2 insertions(+), 124 deletions(-)
Makefile.am +2 -5
@@ -95,15 +95,12 @@ SUBDIRS = \ libdrm_la_LTLIBRARIES = libdrm.la libdrm_ladir = $(libdir) libdrm_la_LDFLAGS = -version-number 2:4:0 -no-undefined -libdrm_la_LIBADD = \ - @CLOCK_LIB@ \ - @LIBUDEV_LIBS@ +libdrm_la_LIBADD = @CLOCK_LIB@ libdrm_la_CPPFLAGS = -I$(top_srcdir)/include/drm AM_CFLAGS = \ $(WARN_CFLAGS) \ - $(VALGRIND_CFLAGS) \ - $(LIBUDEV_CFLAGS) + $(VALGRIND_CFLAGS) libdrm_la_SOURCES = $(LIBDRM_FILES)
xf86drm.c +0 -100
109 lines not on this page · raw message
xf86drm.h +0 -19
@@ -342,24 +342,6 @@ typedef struct _drmSetVersion {int drm_dd_minor; } drmSetVersion, *drmSetVersionPtr; -/** -* Structure to a general pci gpu device -* -* \sa drmGetDevices() -* -*/ -typedef struct _drmPciDevice { -uint16_t domain; -uint8_t bus; -uint8_t dev; -uint8_t func; -uint16_t vendor_id; -uint16_t device_id; -uint16_t subvendor_id; -uint16_t subdevice_id; -uint8_t revision_id; -}drmPciDevice , *drmPciDevicePtr ; -#define __drm_dummy_lock (lock) (*(__volatile__ unsigned int *)lock)#define DRM_LOCK_HELD 0x80000000U/**< Hardware lock is held */
@@ -570,7 +552,6 @@ do { register unsigned int __old __asm("o0"); \/* General user-level programmer's API: unprivileged */ extern int drmAvailable (void );extern int drmOpen (const char *name,const char *busid); -extern int drmGetPciDevices (drmPciDevicePtr devSet,uint16_t vendorId);#define DRM_NODE_PRIMARY 0#define DRM_NODE_CONTROL 1
Signature · 6 lines
2.3.5 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel