[igt-dev] [PATCH v15 4/5] lib/i915: add gem_engine_topology library and for_each loop definition
Andi Shyti
andi.shyti at intel.com
Fri Mar 22 10:06:45 UTC 2019
> > + ret = __gem_context_get_param(fd, ¶m);
> > +
> > + nengines = param.size > sizeof(struct i915_context_param_engines) ?
> > + (param.size - sizeof(struct i915_context_param_engines)) /
> > + sizeof(engines->class_instance[0]) :
> > + 0;
> > +
> > + if (nengines > I915_EXEC_RING_MASK + 1) {
> > + engine_data.error = ret ? ret : -EINVAL;
> > + return engine_data;
> > + }
> > +
> > + if (__gem_context_get_param(fd, ¶m)) {
>
> Why are you calling get_param twice btw?
yes... please, don't bother... while moving things around I
forgot it. Thanks!
I told Chris yeterday, my distraction will kill me once :)
Andi
More information about the igt-dev
mailing list