diff options
| author | Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com> | 2026-05-11 18:07:50 +0530 |
|---|---|---|
| committer | Balasubramani Vivekanandan <balasubramani.vivekanandan@intel.com> | 2026-05-13 12:21:12 +0530 |
| commit | 66cbb3c856bc67be893f81961e1b671dc102f19b (patch) | |
| tree | 0b6309d5179bc4eb362e9b1b2d5ebf14d4e643df /drivers/gpu/drm/xe/tests | |
| parent | 65be72013baf9c9bbaa859b659269b31deccc8c9 (diff) | |
| download | lwn-66cbb3c856bc67be893f81961e1b671dc102f19b.tar.gz lwn-66cbb3c856bc67be893f81961e1b671dc102f19b.zip | |
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>
Diffstat (limited to 'drivers/gpu/drm/xe/tests')
| -rw-r--r-- | drivers/gpu/drm/xe/tests/xe_migrate.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/xe/tests/xe_migrate.c b/drivers/gpu/drm/xe/tests/xe_migrate.c index 50a97705e0ac..3c1be809be82 100644 --- a/drivers/gpu/drm/xe/tests/xe_migrate.c +++ b/drivers/gpu/drm/xe/tests/xe_migrate.c @@ -421,7 +421,7 @@ static struct dma_fence *blt_copy(struct xe_tile *tile, avail_pts, avail_pts); /* Add copy commands size here */ - batch_size += ((copy_only_ccs) ? 0 : EMIT_COPY_DW) + + batch_size += ((copy_only_ccs) ? 0 : emit_copy_cmd_len(xe)) + ((xe_device_has_flat_ccs(xe) && copy_only_ccs) ? EMIT_COPY_CCS_DW : 0); bb = xe_bb_new(gt, batch_size, xe->info.has_usm); |
