[Mesa-dev] [PATCH 0/2] Anv/i965: Drop dependency on libdrm's kernel headers

Lionel Landwerlin lionel.g.landwerlin at intel.com
Thu Jun 15 00:22:08 UTC 2017


Hi,

While working with changes that span from kernel to user space, I've
been wondering whether we need to depend on libdrm's header files at
all for the anv & i965 drivers. Indeed with Ken's recent changes, we
depend on libdrm for 1 or 2 functions wrapping an ioctl (with
drmGetDevices2 being the only function actually containing so logic)
and for its kernel header files. The latter which we could just embed
ourselves given how the userspace & kernelspace drivers closely
interact.

I've only included the minimal set of header files we need from the
kernel for anv & i965. Maybe other drivers would be interested and
maybe we should put all the kernel drm uapi headers into include?

Cheers,

Lionel Landwerlin (2):
  aubinator: import intel_aub.h from libdrm
  anv/i965: drop libdrm_intel dependency completely

 configure.ac                                |    6 +-
 src/gallium/drivers/i915/Automake.inc       |    2 +-
 src/gallium/targets/pipe-loader/Makefile.am |    2 +-
 src/gallium/winsys/i915/drm/Makefile.am     |    2 +-
 src/intel/Makefile.drm.am                   |   22 +
 src/intel/Makefile.sources                  |    6 +
 src/intel/Makefile.tools.am                 |    3 +-
 src/intel/Makefile.vulkan.am                |    4 +-
 src/intel/drm/drm.h                         |  925 +++++++++++++++++
 src/intel/drm/drm_fourcc.h                  |  358 +++++++
 src/intel/drm/drm_mode.h                    |  739 ++++++++++++++
 src/intel/drm/i915_drm.h                    | 1459 +++++++++++++++++++++++++++
 src/intel/tools/intel_aub.h                 |  153 +++
 src/mesa/drivers/dri/i915/Makefile.am       |    4 +-
 src/mesa/drivers/dri/i965/Makefile.am       |    2 +-
 15 files changed, 3673 insertions(+), 14 deletions(-)
 create mode 100644 src/intel/Makefile.drm.am
 create mode 100644 src/intel/drm/drm.h
 create mode 100644 src/intel/drm/drm_fourcc.h
 create mode 100644 src/intel/drm/drm_mode.h
 create mode 100644 src/intel/drm/i915_drm.h
 create mode 100644 src/intel/tools/intel_aub.h

--
2.11.0


More information about the mesa-dev mailing list