drm/xe/hw_engine: don't open code is_usm_hwe()

Prefer is_usm_hwe() here.

Signed-off-by: Matthew Auld <matthew.auld@intel.com>
Cc: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Reviewed-by: Daniele Ceraolo Spurio <daniele.ceraolospurio@intel.com>
Link: https://patch.msgid.link/20260626111520.487997-16-matthew.auld@intel.com
This commit is contained in:
Matthew Auld
2026-06-26 12:15:25 +01:00
parent 0c9a7926bd
commit 08af1a0efd

View File

@@ -1043,8 +1043,7 @@ bool xe_hw_engine_is_reserved(struct xe_hw_engine *hwe)
hwe->logical_instance >= gt->ccs_mode)
return true;
return xe->info.has_usm && hwe->class == XE_ENGINE_CLASS_COPY &&
hwe->instance == gt->usm.reserved_bcs_instance;
return xe_gt_is_usm_hwe(gt, hwe);
}
const char *xe_hw_engine_class_to_str(enum xe_engine_class class)