android_external_minigbm/external
Carlos Santa 3ab89b0247 xe: add initial Xe kmd support for gen12 xelp
Adds a new intel backend for interfacing with the Xe kernel driver.
Currently only tested on gen12 (Xe1; e.g. TGL, ADL, MTL).

Test 1: drm-tests (natively): stop ui and then run:
	- mapped_texture_test
	- null_platform_test -m [I915_FORMAT_MOD_X_TILED|I915_FORMAT_MOD_Y_TILED]
	- plane_test (by default it uses NV12)

Test 2: full OS: boot to UI, execute webGL and/or YouTube successfully and watch
the terminal: TERM=xterm watch -n1 -d cat /sys/kernel/debug/dri/0/i915_display_info
for color formats and display plane usage

v1: Carlos Santa <carlos.santa@intel.corp-partner.google.com>
v2: Ryan Neph <ryanneph@google.com>
  - formatting fixes
  - remove deprecated #ifdef I915_SCANOUT_Y_TILED conditional compilation
  - add missing backend_xe implementations
  - mimic i915_add_combinations
    - Match formatting, order of operations, and add the missing combo for
      YVU420_ANDROID + USE_CAMERA_WRITE.
    - In a future CL, we'll factor this into a common function called by both
      backends.
  - simplify xe_bo_map()
    - The conditional body is always taken, so remove the conditional entirely.
  - mark late-gen12 as mtl_or_newer until proper version handling is used.

BUG=b:358427077
TEST=drm-tests (see above)

Change-Id: I1eaa1dcce6cee706a421b3c4d6a532a6b83f8564
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/minigbm/+/6245159
Tested-by: Ryan Neph <ryanneph@google.com>
Commit-Queue: Ryan Neph <ryanneph@google.com>
Reviewed-by: Matt Turner <msturner@google.com>
Reviewed-by: Lina Versace <linyaa@google.com>
2025-02-10 11:07:50 -08:00
..
i915_drm.h minigbm: Add tile4 support 2022-10-22 01:10:05 +00:00
virgl_hw.h virtgpu_virgl: update virgl_hw.h from upstream 2022-04-13 03:21:23 +00:00
virgl_protocol.h minigbm: virtgpu: add virgl_protocol.h, add external directory 2020-08-27 22:22:11 +00:00
virtgpu_cross_domain_protocol.h minigbm: virtgpu/cross_domain: update protocol 2021-08-26 22:31:17 +00:00
virtgpu_drm.h minigbm: virtgpu/cross_domain: update protocol 2021-08-26 22:31:17 +00:00
virtgpu_gfxstream_protocol.h Add format filtering for virgl gfxstream 2024-08-01 15:42:33 +00:00
xe_drm.h xe: add initial Xe kmd support for gen12 xelp 2025-02-10 11:07:50 -08:00