turnip: Move things to prep for multi-kernel support

The end goal is a single build that supports kgsl (non-drm) as well
as msm and virtgpu (both drm).  First lets move around some files to
accomodate that.

Signed-off-by: Rob Clark <robdclark@chromium.org>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/21394>
This commit is contained in:
Rob Clark
2023-02-16 11:43:20 -08:00
committed by Marge Bot
parent 73dfcbf7e8
commit 1cb702def4
8 changed files with 8 additions and 8 deletions

View File

@@ -70,9 +70,9 @@ if with_freedreno_kgsl
tu_flags += '-DTU_USE_KGSL'
# Even if libdrm is available we shouldn't use it in KGSL build
tu_flags += '-UHAVE_LIBDRM'
libtu_files += files('tu_kgsl.c')
libtu_files += files('tu_knl_kgsl.c')
else
libtu_files += files('tu_drm.c')
libtu_files += files('tu_knl_drm_msm.c')
tu_deps += dep_libdrm
endif

View File

@@ -10,7 +10,7 @@
#include "freedreno_pm4.h"
#include "tu_drm.h"
#include "tu_knl.h"
/* For breadcrumbs we may open a network socket based on the envvar,
* it's not something that should be enabled by default.

View File

@@ -4,7 +4,7 @@
* SPDX-License-Identifier: MIT
*/
#include "tu_drm.h"
#include "tu_knl.h"
#include <errno.h>
#include <fcntl.h>

View File

@@ -3,7 +3,7 @@
* SPDX-License-Identifier: MIT
*/
#include "tu_drm.h"
#include "tu_knl.h"
#include <errno.h>
#include <fcntl.h>

View File

@@ -13,7 +13,7 @@
#include "tu_tracepoints.h"
#include "tu_tracepoints_perfetto.h"
/* we can't include tu_drm.h and tu_device.h */
/* we can't include tu_knl.h and tu_device.h */
extern "C" {
int
tu_device_get_gpu_timestamp(struct tu_device *dev,

View File

@@ -26,7 +26,7 @@
#include "tu_cmd_buffer.h"
#include "tu_cs.h"
#include "tu_device.h"
#include "tu_drm.h"
#include "tu_knl.h"
#include "tu_formats.h"
#include "tu_lrz.h"
#include "tu_pass.h"

View File

@@ -12,7 +12,7 @@
#include "tu_common.h"
#include "tu_drm.h"
#include "tu_knl.h"
/* externally-synchronized BO suballocator. */
struct tu_suballocator