[igt-dev] [PATCH i-g-t 23/93] tests/i915/gem_exec_reloc: Convert to intel_ctx_t
Jason Ekstrand
jason at jlekstrand.net
Mon Jun 14 14:54:56 UTC 2021
On Fri, Jun 11, 2021 at 9:08 PM Dixit, Ashutosh
<ashutosh.dixit at intel.com> wrote:
>
> On Wed, 09 Jun 2021 10:36:06 -0700, Jason Ekstrand wrote:
> >
> > @@ -1481,6 +1498,11 @@ igt_main
> > igt_require_gem(fd);
> > /* Check if relocations supported by platform */
> > igt_require(gem_has_relocations(fd));
> > +
> > + if (gem_has_contexts(fd))
> > + ctx = intel_ctx_create_all_physical(fd);
> > + else
> > + ctx = intel_ctx_0(fd);
>
> This if/else is not needed, intel_ctx_create_all_physical() already does
> this.
Yup. This must have been converted before I made
intel_ctx_create_all_physical() do that. Fixed locally.
More information about the igt-dev
mailing list