[Intel-xe] [PATCH v3 5/5] drm/xe: Add Xe implementation for fence checks used by fbc code
Jouni Högander
jouni.hogander at intel.com
Wed Sep 13 09:54:12 UTC 2023
Xe doesn't support legacy fences. Implement legacy fence and fence
id checks accordingly.
Signed-off-by: Jouni Högander <jouni.hogander at intel.com>
---
drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h | 1 +
drivers/gpu/drm/xe/compat-i915-headers/i915_vma.h | 1 +
.../gpu/drm/xe/compat-i915-headers/intel_gt_types.h | 11 +++++++++++
3 files changed, 13 insertions(+)
create mode 100644 drivers/gpu/drm/xe/compat-i915-headers/intel_gt_types.h
diff --git a/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h b/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
index 55d0d5c7a386..94ab0354185e 100644
--- a/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
+++ b/drivers/gpu/drm/xe/compat-i915-headers/i915_drv.h
@@ -19,6 +19,7 @@
#include "i915_gem_stolen.h"
#include "i915_reg_defs.h"
#include "i915_utils.h"
+#include "intel_gt_types.h"
#include "intel_uncore.h"
#include <linux/pm_runtime.h>
diff --git a/drivers/gpu/drm/xe/compat-i915-headers/i915_vma.h b/drivers/gpu/drm/xe/compat-i915-headers/i915_vma.h
index 3d8a1cc0b132..9424144b1b5a 100644
--- a/drivers/gpu/drm/xe/compat-i915-headers/i915_vma.h
+++ b/drivers/gpu/drm/xe/compat-i915-headers/i915_vma.h
@@ -18,4 +18,5 @@ struct i915_vma {
#define i915_ggtt_clear_scanout(bo) do { } while (0)
+#define i915_vma_fence_id(vma) -1
#endif
diff --git a/drivers/gpu/drm/xe/compat-i915-headers/intel_gt_types.h b/drivers/gpu/drm/xe/compat-i915-headers/intel_gt_types.h
new file mode 100644
index 000000000000..c15806d6c4f7
--- /dev/null
+++ b/drivers/gpu/drm/xe/compat-i915-headers/intel_gt_types.h
@@ -0,0 +1,11 @@
+/* SPDX-License-Identifier: MIT */
+/*
+ * Copyright © 2023 Intel Corporation
+ */
+
+#ifndef __INTEL_GT_TYPES__
+#define __INTEL_GT_TYPES__
+
+#define intel_gt_support_legacy_fencing(gt) 0
+
+#endif
--
2.34.1
More information about the Intel-xe
mailing list