[Intel-xe] [PATCH v3 10/10] drm/xe: Add Xe implementation for fence checks used by fbc code
Jouni Högander
jouni.hogander at intel.com
Fri Jun 2 10:42:37 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 | 2 ++
.../gpu/drm/xe/compat-i915-headers/intel_gt_types.h | 11 +++++++++++
3 files changed, 14 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 513b570d4895..88cbffaeadee 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_reg_defs.h"
#include "intel_pch.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 c40bb27ac72a..45ea0e44073d 100644
--- a/drivers/gpu/drm/xe/compat-i915-headers/i915_vma.h
+++ b/drivers/gpu/drm/xe/compat-i915-headers/i915_vma.h
@@ -11,4 +11,6 @@ struct i915_vma {
struct drm_mm_node node;
};
+#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