mirror of
https://github.com/torvalds/linux.git
synced 2026-06-01 02:53:36 +02:00
drm/xe: Use emit_flush_imm_ggtt helper instead of open coding
Helper is already there so lets just use it. Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com> Reviewed-by: Matthew Brost <matthew.brost@intel.com> Link: https://lore.kernel.org/r/20250724131711.74291-2-tvrtko.ursulin@igalia.com Signed-off-by: Lucas De Marchi <lucas.demarchi@intel.com>
This commit is contained in:
parent
a313d9059f
commit
a98cdd979c
|
|
@ -415,11 +415,9 @@ static void emit_migration_job_gen12(struct xe_sched_job *job,
|
|||
|
||||
i = emit_bb_start(job->ptrs[1].batch_addr, BIT(8), dw, i);
|
||||
|
||||
dw[i++] = MI_FLUSH_DW | MI_INVALIDATE_TLB | job->migrate_flush_flags |
|
||||
MI_FLUSH_DW_OP_STOREDW | MI_FLUSH_IMM_DW;
|
||||
dw[i++] = xe_lrc_seqno_ggtt_addr(lrc) | MI_FLUSH_DW_USE_GTT;
|
||||
dw[i++] = 0;
|
||||
dw[i++] = seqno; /* value */
|
||||
i = emit_flush_imm_ggtt(xe_lrc_seqno_ggtt_addr(lrc), seqno,
|
||||
MI_INVALIDATE_TLB | job->migrate_flush_flags,
|
||||
dw, i);
|
||||
|
||||
i = emit_user_interrupt(dw, i);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user