[PATCH i-g-t 5/7] lib/intel_batchbuffer/xe: add bb exec path to use specific engine and gt
Juha-Pekka Heikkila
juhapekka.heikkila at gmail.com
Tue Mar 25 19:08:37 UTC 2025
Add __xe_bb_exec path to use specific engine/class/gt
Signed-off-by: Juha-Pekka Heikkila <juhapekka.heikkila at gmail.com>
---
lib/intel_batchbuffer.c | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/lib/intel_batchbuffer.c b/lib/intel_batchbuffer.c
index 0c21ff77a..d337c56cf 100644
--- a/lib/intel_batchbuffer.c
+++ b/lib/intel_batchbuffer.c
@@ -2469,7 +2469,12 @@ __xe_bb_exec(struct intel_bb *ibb, uint64_t flags, bool sync)
igt_assert_eq(ibb->xe_bound, false);
if (ibb->ctx) {
- engine_id = ibb->ctx;
+ unsigned short class = get_engine_class(ibb->fd, flags);
+ engine_id = xe_exec_queue_create_class_gt(ibb->fd,
+ ibb->vm_id,
+ class,
+ ibb->ctx);
+ ibb->engine_id = engine_id;
} else if (ibb->last_engine != engine) {
struct drm_xe_engine_class_instance inst = { };
--
2.45.2
More information about the igt-dev
mailing list