[PATCH i-g-t 68/81] lib/igt_dummyload: Stop supporting ALL_ENGINES without an intel_ctx_t
Jason Ekstrand
jason at jlekstrand.net
Wed Jul 7 21:03:35 UTC 2021
Signed-off-by: Jason Ekstrand <jason at jlekstrand.net>
Reviewed-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
---
lib/igt_dummyload.c | 21 ++++++---------------
1 file changed, 6 insertions(+), 15 deletions(-)
diff --git a/lib/igt_dummyload.c b/lib/igt_dummyload.c
index 75be2f7c7..7cc242872 100644
--- a/lib/igt_dummyload.c
+++ b/lib/igt_dummyload.c
@@ -131,22 +131,13 @@ emit_recursive_batch(igt_spin_t *spin,
if (opts->engine == ALL_ENGINES) {
struct intel_execution_engine2 *engine;
- if (opts->ctx) {
- for_each_ctx_engine(fd, opts->ctx, engine) {
- if (opts->flags & IGT_SPIN_POLL_RUN &&
- !gem_class_can_store_dword(fd, engine->class))
- continue;
+ igt_assert(opts->ctx);
+ for_each_ctx_engine(fd, opts->ctx, engine) {
+ if (opts->flags & IGT_SPIN_POLL_RUN &&
+ !gem_class_can_store_dword(fd, engine->class))
+ continue;
- flags[nengine++] = engine->flags;
- }
- } else {
- for_each_context_engine(fd, opts->ctx_id, engine) {
- if (opts->flags & IGT_SPIN_POLL_RUN &&
- !gem_class_can_store_dword(fd, engine->class))
- continue;
-
- flags[nengine++] = engine->flags;
- }
+ flags[nengine++] = engine->flags;
}
} else {
flags[nengine++] = opts->engine;
--
2.31.1
More information about the Intel-gfx-trybot
mailing list