Skip to content

Intel: Add support for Xe KMD

José Roberto de Souza requested to merge zehortigoza/mesa:xe-port into main

Xe KMD is a fresh KMD implementation for Intel GPUs, you can read more about it in here:

Xe KMD will only support Tigerlake and newer platforms, so here I have added Xe KMD support for Iris and ANV, to properly work it is necessary to enable Xe KMD in build time with -Dintel-xe-kmd=enabled then in run time it will check if you have i915 or Xe KMD loaded and take the appropriate code paths.

It is functional enough to run Gnome, browser, OpenGL games, Vulkan games... but eventual crashes and bugs are expected at this time. No work has been done so far in optimizing for the new driver.

The plan is to merge this in chunks of smaller merge requests, but this merge request will be kept updated to easily allow testing.

Xe KMD UAPI will probably change a bit during its review process and the plan is to not block these patches but merge and fix on top as UAPI evolves.

TODO list:

  • port Intel tools to Xe KMD
  • Performance counters support is missing in the KMD UAPI, so wait for UAPI and then port Perfetto
  • remove i915_drm.h code and includes from common code in the remaining places
  • analyze and improve performance


Edited by José Roberto de Souza

Merge request reports