mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
drm/xe: Update shared stats to use the new gem helper
Switch to using the new gem shared memory stats helper rather than hand rolling it. Link: https://lore.kernel.org/all/20231207180225.439482-1-alexander.deucher@amd.com/ Signed-off-by: Alex Deucher <alexander.deucher@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Christian König <christian.koenig@amd.com>
This commit is contained in:
parent
905a176a3c
commit
61e738d81f
1 changed files with 1 additions and 1 deletions
|
@ -113,7 +113,7 @@ static void bo_meminfo(struct xe_bo *bo,
|
|||
else
|
||||
mem_type = XE_PL_TT;
|
||||
|
||||
if (bo->ttm.base.handle_count > 1)
|
||||
if (drm_gem_object_is_shared_for_memory_stats(&bo->ttm.base))
|
||||
stats[mem_type].shared += sz;
|
||||
else
|
||||
stats[mem_type].private += sz;
|
||||
|
|
Loading…
Reference in a new issue