summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/xe/xe_bo.c
diff options
context:
space:
mode:
authorBrian Welty <brian.welty@intel.com>2023-09-26 12:10:40 -0700
committerRodrigo Vivi <rodrigo.vivi@intel.com>2023-12-21 11:43:32 -0500
commit4e11a1411ab41416be7f29716a767eb135f7aa74 (patch)
treefedb343b31164b00bc6ec7383abaaebcd0790c83 /drivers/gpu/drm/xe/xe_bo.c
parent4e002016a1e5b5d0b29191a82d4f561f175f3d33 (diff)
drm/xe: Remove unused xe_bo_to_tile
Unused and would like to remove the memtype_to_tile() which it calls. Signed-off-by: Brian Welty <brian.welty@intel.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'drivers/gpu/drm/xe/xe_bo.c')
-rw-r--r--drivers/gpu/drm/xe/xe_bo.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/drivers/gpu/drm/xe/xe_bo.c b/drivers/gpu/drm/xe/xe_bo.c
index 4467d711aa1f..bdd23090c0ad 100644
--- a/drivers/gpu/drm/xe/xe_bo.c
+++ b/drivers/gpu/drm/xe/xe_bo.c
@@ -109,19 +109,6 @@ mem_type_to_tile(struct xe_device *xe, u32 mem_type)
return &xe->tiles[mem_type == XE_PL_STOLEN ? 0 : (mem_type - XE_PL_VRAM0)];
}
-/**
- * xe_bo_to_tile() - Get a tile from a BO's memory location
- * @bo: The buffer object
- *
- * Get a tile from a BO's memory location, should be called on BOs in VRAM only.
- *
- * Return: xe_tile object which is closest to the BO
- */
-struct xe_tile *xe_bo_to_tile(struct xe_bo *bo)
-{
- return mem_type_to_tile(xe_bo_device(bo), bo->ttm.resource->mem_type);
-}
-
static void try_add_system(struct xe_bo *bo, struct ttm_place *places,
u32 bo_flags, u32 *c)
{