A couple of things I wanted to do for the longest time: - Have (intel's) libdrm use the kernel i915_pciids.h so we can just copy the file when updating - Start a new object, struct drm_intel_device where we could put common code across several userspace projects. For instance it could be where we put the "number of threads" logic we need to use in several 3d/gpgpu states/instructions (that's a bit fiddly starting with CHV: we can't use static tables anymore and need a runtime query to the kernel) I tested it a bit so it can't be totally wrong: - I ran with this series on a couple of machines with no noticeable problem - I check that the INTEL_DEVID_OVERRIDE env variable was still working (to dump AUB files) - make check, which exercises changes in the decoder path, still passes -- Damien Damien Lespiau (12): intel: Remove unused define IS_MOBILE() intel: Introduce an drm_intel_device object intel: Use drm_intel_device in the gem buffer manager intel: Make drm_intel_decode use a drm_intel_device intel: Use '||' for the boolean or intel: Kill the IS_9XX() macro intel: Kill the IS_GEN4() macro intel: Remove direct usage of IS_915() intel: Provide IS_GENX() macros taking a drm_intel_device as argument intel: Make test_decode fail gracefully the decode context is NULL intel: Make test_decode not depend on intel_chipset.h intel: Remove intel_chipset.h intel/Makefile.sources | 5 +- intel/i915_pciids.h | 289 +++++++++++++++++++++++++++++++++++ intel/intel_bufmgr_gem.c | 70 ++------- intel/intel_chipset.h | 376 ---------------------------------------------- intel/intel_decode.c | 82 +++++----- intel/intel_device.c | 300 ++++++++++++++++++++++++++++++++++++ intel/intel_device.h | 99 ++++++++++++ intel/intel_device_priv.h | 43 ++++++ intel/test_decode.c | 12 +- 9 files changed, 791 insertions(+), 485 deletions(-) create mode 100644 intel/i915_pciids.h delete mode 100644 intel/intel_chipset.h create mode 100644 intel/intel_device.c create mode 100644 intel/intel_device.h create mode 100644 intel/intel_device_priv.h -- 1.8.3.1 _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx