]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/xe: Refactor emit_xy_fast_copy and emit_mem_copy functions
authorBalasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Mon, 11 May 2026 12:37:50 +0000 (18:07 +0530)
committerBalasubramani Vivekanandan <balasubramani.vivekanandan@intel.com>
Wed, 13 May 2026 06:51:12 +0000 (12:21 +0530)
commit66cbb3c856bc67be893f81961e1b671dc102f19b
tree0b6309d5179bc4eb362e9b1b2d5ebf14d4e643df
parent65be72013baf9c9bbaa859b659269b31deccc8c9
drm/xe: Refactor emit_xy_fast_copy and emit_mem_copy functions

To perform copy, based on whether the platform supports service copy
engines, either MEM_COPY or XY_FAST_COPY_BLT instruction is used.
Length of both the instructions is same today and so they use a common
define EMIT_COPY_DW.
This is not true for the future platforms. Implement separate functions
which return the length of the instruction to help in preparing for it.

Reviewed-by: Matt Roper <matthew.d.roper@intel.com>
Link: https://patch.msgid.link/20260511123746.616662-8-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/tests/xe_migrate.c
drivers/gpu/drm/xe/xe_migrate.c