drm/xe: Refactor emit_clear_link_copy
authorBalasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Mon, 11 May 2026 12:37:49 +0000 (18:07 +0530)
committerBalasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Wed, 13 May 2026 06:51:12 +0000 (12:21 +0530)
commit65be72013baf9c9bbaa859b659269b31deccc8c9
treee982aa91f99c370bd7800394c082bf9e57e3de21
parent388768fe17386fe82ebac1869a2e084380b6d2c7
drm/xe: Refactor emit_clear_link_copy

Implement a function to return the length of the MEM_SET instruction.
This is to prepare for future platforms where the length of MEM_SET
instruction is expected to change.

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patch.msgid.link/20260511123746.616662-7-balasubramani.vivekanandan@intel.com
Signed-off-by: Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
drivers/gpu/drm/xe/instructions/xe_gpu_commands.h
drivers/gpu/drm/xe/xe_migrate.c