diff options
Diffstat (limited to 'debugger')
-rw-r--r-- | debugger/debug_rdata.c | 7 | ||||
-rw-r--r-- | debugger/eudb.c | 8 |
2 files changed, 10 insertions, 5 deletions
diff --git a/debugger/debug_rdata.c b/debugger/debug_rdata.c index 61d82d9e..fea95029 100644 --- a/debugger/debug_rdata.c +++ b/debugger/debug_rdata.c @@ -29,7 +29,6 @@ #include <stdio.h> #include <stdlib.h> #include "intel_io.h" -#include "intel_chipset.h" struct eu_rdata { union { @@ -133,7 +132,11 @@ find_stuck_threads(void) int main(int argc, char *argv[]) { struct pci_device *pci_dev; - pci_dev = intel_get_pci_device(); + int fd; + + fd = drm_open_driver(DRIVER_INTEL); + pci_dev = igt_device_get_pci_device(fd); + close(fd); intel_register_access_init(pci_dev, 1); find_stuck_threads(); diff --git a/debugger/eudb.c b/debugger/eudb.c index 866d4b52..b5784148 100644 --- a/debugger/eudb.c +++ b/debugger/eudb.c @@ -42,7 +42,6 @@ #include "drm.h" #include "i915_drm.h" #include "drmtest.h" -#include "intel_chipset.h" #include "intel_bufmgr.h" #include "intel_io.h" #include "intel_batchbuffer.h" @@ -506,7 +505,7 @@ int main(int argc, char* argv[]) { struct pci_device *pci_dev; volatile uint8_t *scratch = NULL; int bits[64]; - int devid = -1, opt; + int devid = -1, opt, fd; while ((opt = getopt(argc, argv, "cdr:pf?h")) != -1) { switch (opt) { @@ -533,7 +532,10 @@ int main(int argc, char* argv[]) { } } - pci_dev = intel_get_pci_device(); + fd = drm_open_driver(DRIVER_INTEL); + pci_dev = igt_device_get_pci_device(fd); + close(fd); + if (devid == -1) devid = pci_dev->device_id; if (identify_device(devid)) { |