drm/xe/bo: Fix swapin when moving to VRAM
authorThomas Hellström <thomas.hellstrom@linux.intel.com>
Mon, 26 Jun 2023 18:17:38 +0000 (20:17 +0200)
committerRodrigo Vivi <rodrigo.vivi@intel.com>
Thu, 21 Dec 2023 16:35:04 +0000 (11:35 -0500)
commitbc2e0215deeaa88dec44ff07e3a2b19283d53cdb
tree6c6bd1998e086ddaa4909a6d34bbee8e39df808c
parent7b076d14f21a48de572e5191614b3e6b2d6ab823
drm/xe/bo: Fix swapin when moving to VRAM

When a source system resource had been swapped out, we incorrectly
assumed that we were lacking source data for a move and therefore
cleared the destination instead of swapping in and copying the
swapped-out data. Fix this.

Signed-off-by: Thomas Hellström <thomas.hellstrom@linux.intel.com>
Reviewed-by: Matthew Brost <matthew.brost@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230626181741.32820-2-thomas.hellstrom@linux.intel.com
Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
drivers/gpu/drm/xe/xe_bo.c