summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_ggtt.h
diff options
context:
space:
mode:
authorLucas De Marchi <lucas.demarchi@intel.com>2023-09-27 12:39:01 -0700
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 11:41:20 -0500
commit1464f56b47d8db63ad95dad3fd8845ec412dc8d5 (patch)
tree2032a18cba7d7be2668cfb2a7a2981e29f86c316 /drivers/gpu/drm/xe/xe_ggtt.h
parentfcd75139cd3c76467c8495c750fd6e27787f7e37 (diff)
drm/xe: Use vfunc for ggtt pte encoding
Use 2 different functions for encoding the ggtt's pte, assigning them during initialization. Main difference is that before Xe-LPG, the pte didn't have the cache bits. v2: Re-use xelp_ggtt_pte_encode_bo() for the common part with xelpg_ggtt_pte_encode_bo() (Matt Roper) Reviewed-by: Matt Roper <matthew.d.roper@intel.com> Link: https://lore.kernel.org/r/20230927193902.2849159-11-lucas.demarchi@intel.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_ggtt.h')
-rw-r--r--drivers/gpu/drm/xe/xe_ggtt.h1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/xe_ggtt.h b/drivers/gpu/drm/xe/xe_ggtt.h
index 8e7360926bea..04bb26b0938e 100644
--- a/drivers/gpu/drm/xe/xe_ggtt.h
+++ b/drivers/gpu/drm/xe/xe_ggtt.h
@@ -10,7 +10,6 @@
struct drm_printer;
-u64 xe_ggtt_pte_encode(struct xe_bo *bo, u64 bo_offset);
void xe_ggtt_set_pte(struct xe_ggtt *ggtt, u64 addr, u64 pte);
void xe_ggtt_invalidate(struct xe_ggtt *ggtt);
int xe_ggtt_init_noalloc(struct xe_ggtt *ggtt);