Quoting Tvrtko Ursulin (2019-06-27 11:20:19) > +bool gem_context_has_engine_map(int fd, uint32_t ctx) > +{ > + struct drm_i915_gem_context_param param = { > + .param = I915_CONTEXT_PARAM_ENGINES, > + .ctx_id = ctx > + }; > + int ret; > + > + ret = __gem_context_get_param(fd, ¶m); > + igt_assert_eq(ret, 0); ret is -EINVAL if the parameter doesn't exist on older kernels, where naturally we have no engine map! bool result; result = false; if (__gem_context_get_param(fd, ¶m) == 0) result = param.size; return result; ? -Chris _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx