diff options
| author | Matthew Auld <matthew.auld@intel.com> | 2023-03-21 14:44:07 +0300 |
|---|---|---|
| committer | Rodrigo Vivi <rodrigo.vivi@intel.com> | 2023-12-20 02:30:20 +0300 |
| commit | ce79c6c43af7280c1f26d700959d04a7e62092af (patch) | |
| tree | e16ef8b7ed2338ee9f2d797871a3858ae2a73d19 /scripts | |
| parent | 793e6612deea5cf8117100b1d47754800b24dcfa (diff) | |
| download | linux-ce79c6c43af7280c1f26d700959d04a7e62092af.tar.xz | |
drm/xe/buddy: add compatible and intersects hooks
Copy this from i915. We need .compatible for vram -> vram transfers, so
they don't just get nooped by ttm, if need to move something from
mappable to non-mappble or vice versa. The .intersects is needed for
eviction, to determine if a victim resource is worth eviction. e.g if we
need mappable space there is no point in evicting a resource that has
zero mappable pages.
Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Lucas De Marchi <lucas.demarchi@intel.com>
Reviewed-by: Maarten Lankhorst <maarten.lankhorst@linux.intel.com>
Reviewed-by: Gwan-gyeong Mun <gwan-gyeong.mun@intel.com>
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
