Re: [igt-dev] [RFC PATCH v9 4/5] lib: ioctl_wrappers: reach engines by index as well

Andi Shyti via igt-dev
2019-02-14T13:06:16Z

Hi Chris,

> > -bool gem_has_ring(int fd, unsigned ring)
> > +bool gem_context_has_engine(int fd, unsigned ring, unsigned ctx)
>
> Remember to lift it out of ioctl_wrappers, and as this operates on the
> context (given the name), the context should be a primary argument.

All right, I'll put 'gem_context_has_engine()' in
lib/i915/gem_context.c.

Andi