[igt-dev] [PATCH i-g-t] tests/i915/perf_pmu: Use correct context id in "enable-race"
Ashutosh Dixit
ashutosh.dixit at intel.com
Mon Aug 8 17:54:58 UTC 2022
Use correct context id in "enable-race" test.
Bug: https://gitlab.freedesktop.org/drm/intel/-/issues/5490
Signed-off-by: Ashutosh Dixit <ashutosh.dixit at intel.com>
---
tests/i915/perf_pmu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/tests/i915/perf_pmu.c b/tests/i915/perf_pmu.c
index e2b13540e76e..f363db2ba135 100644
--- a/tests/i915/perf_pmu.c
+++ b/tests/i915/perf_pmu.c
@@ -1809,7 +1809,7 @@ test_enable_race(int gem_fd, const intel_ctx_t *ctx,
int fd;
igt_require(gem_scheduler_has_engine_busy_stats(gem_fd));
- igt_require(gem_context_has_engine(gem_fd, 0, e->flags));
+ igt_require(gem_context_has_engine(gem_fd, ctx->id, e->flags));
obj.handle = gem_create(gem_fd, 4096);
gem_write(gem_fd, obj.handle, 0, &bbend, sizeof(bbend));
--
2.34.1
More information about the igt-dev
mailing list