mbox series

[0/3] linux-user: Add some ioctls for mesa amdgpu support

Message ID 20230410101118.59564-1-tanxiongchuan@isrc.iscas.ac.cn
Headers show
Series linux-user: Add some ioctls for mesa amdgpu support | expand

Message

Xiongchuan Tan April 10, 2023, 10:11 a.m. UTC
This patchset tries to add support for amdgpu driver in mesa.

DRM_IOCTL_VERSION has been implemented before, so mesa running in qemu-user will
try to communicate with kernel DRM via the ioctl interface. This patchset
implements several ioctls needed by mesa to enable hardware acceleration, which
can be enabled via the newly added --enable-linux-user-drm-amdgpu configure 
flag.

Xiongchuan Tan (3):
  linux-user: Add compile flag for amdgpu drm support
  linux-user: Add more drm ioctls for mesa
  linux-user: Add amdgpu specific drm ioctls for mesa

 configure                  |   2 +
 linux-user/ioctls.h        |  31 ++-
 linux-user/syscall.c       | 420 ++++++++++++++++++++++++++++++++++++-
 linux-user/syscall_defs.h  | 139 +++++++++++-
 linux-user/syscall_types.h |  79 +++++++
 meson.build                |   1 +
 meson_options.txt          |   3 +
 7 files changed, 670 insertions(+), 5 deletions(-)