]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/xe/client: use mem_type from the current resource
authorMatthew Auld <matthew.auld@intel.com>
Wed, 11 Sep 2024 15:55:29 +0000 (16:55 +0100)
committerMatthew Auld <matthew.auld@intel.com>
Thu, 12 Sep 2024 08:27:30 +0000 (09:27 +0100)
commitfbd73b7d2ae29ef0f604f376bcc22b886a49329e
tree2288f4a574bc8427d31d82feea84d1cac82caf1c
parent4f63d712fa104c3ebefcb289d1e733e86d8698c7
drm/xe/client: use mem_type from the current resource

Rather extract the mem_type from the current resource. Checking the
first potential placement doesn't really tell us where the bo is
currently allocated, especially if there are multiple potential
placements.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Himal Prasad Ghimiray <himal.prasad.ghimiray@intel.com>
Cc: Tejas Upadhyay <tejas.upadhyay@intel.com>
Cc: "Thomas Hellström" <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Reviewed-by: Tejas Upadhyay <tejas.upadhyay@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240911155527.178910-7-matthew.auld@intel.com
drivers/gpu/drm/xe/xe_drm_client.c