[igt-dev] [PATCH i-g-t 23/93] tests/i915/gem_exec_reloc: Convert to intel_ctx_t
Dixit, Ashutosh
ashutosh.dixit at intel.com
Sat Jun 12 01:51:29 UTC 2021
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.
More information about the igt-dev
mailing list