From 5468123822bbe8cd0a0abe07bbbd3a9cb14ed2cb Mon Sep 17 00:00:00 2001 From: Austin Shafer Date: Thu, 17 Mar 2022 12:49:09 -0400 Subject: [PATCH] Add DRM platform for BSD This moves lnx_platform.c to the shared directory and adds it to the BSD build. This is needed for PRIME render offload. Acked-by: Olivier Fourdan --- hw/xfree86/os-support/meson.build | 3 ++- .../os-support/{linux/lnx_platform.c => shared/drm_platform.c} | 0 2 files changed, 2 insertions(+), 1 deletion(-) rename hw/xfree86/os-support/{linux/lnx_platform.c => shared/drm_platform.c} (100%) diff --git a/hw/xfree86/os-support/meson.build b/hw/xfree86/os-support/meson.build index 64a6c9adb..4c58cd327 100644 --- a/hw/xfree86/os-support/meson.build +++ b/hw/xfree86/os-support/meson.build @@ -36,10 +36,10 @@ if host_machine.system() == 'linux' 'linux/lnx_bell.c', 'linux/lnx_init.c', 'linux/lnx_kmod.c', - 'linux/lnx_platform.c', 'linux/lnx_video.c', 'misc/SlowBcopy.c', 'shared/VTsw_usl.c', + 'shared/drm_platform.c', ] if build_agp srcs_xorg_os_support += 'linux/lnx_agp.c' @@ -96,6 +96,7 @@ elif host_machine.system().endswith('bsd') 'bsd/bsd_VTsw.c', 'bsd/bsd_bell.c', 'bsd/bsd_init.c', + 'shared/drm_platform.c', 'shared/pm_noop.c' ] diff --git a/hw/xfree86/os-support/linux/lnx_platform.c b/hw/xfree86/os-support/shared/drm_platform.c similarity index 100% rename from hw/xfree86/os-support/linux/lnx_platform.c rename to hw/xfree86/os-support/shared/drm_platform.c