drm/xe: Simplify xe_res_get_buddy()
authorBrian Welty <brian.welty@intel.com>
Tue, 26 Sep 2023 20:59:37 +0000 (13:59 -0700)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:43:19 +0000 (11:43 -0500)
commitc85d36be2993d65cfd678e01659ff69a4a803cad
tree3da8cdb71bd1ac4057e9fa2fd61aa8cf22bbcd4a
parentbf6d941c06c9681d0f3d8380e7093d7f79d3eef6
drm/xe: Simplify xe_res_get_buddy()

We can remove the unnecessary indirection thru xe->tiles[] to get
the TTM VRAM manager.  This code can be common for VRAM and STOLEN.

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>
drivers/gpu/drm/xe/xe_res_cursor.h