[igt-dev] [PATCH i-g-t] tests/i915/gem_ctx_shared: Resolve missing context for exec_shared_gtt

Dixit, Ashutosh ashutosh.dixit at intel.com
Mon Nov 1 21:18:09 UTC 2021


On Mon, 01 Nov 2021 12:43:00 -0700, Arjun Melkaveri wrote:
>
> Resolved missing context id in exec buf by passing first context i.e
> ctx[0].
>
> This change would fix test assertion in gem_execbuf for
> "exec_shared_gtt" subtest.

Reviewed-by: Ashutosh Dixit <ashutosh.dixit at intel.com>

> Signed-off-by: Arjun Melkaveri <arjun.melkaveri at intel.com>
> Cc: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> Cc: Ashutosh Dixit <ashutosh.dixit at intel.com>
> ---
>  tests/i915/gem_ctx_shared.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/tests/i915/gem_ctx_shared.c b/tests/i915/gem_ctx_shared.c
> index ea1b5dd1..3bf700fe 100644
> --- a/tests/i915/gem_ctx_shared.c
> +++ b/tests/i915/gem_ctx_shared.c
> @@ -277,6 +277,7 @@ static void exec_shared_gtt(int i915, const intel_ctx_cfg_t *cfg,
>	scratch = gem_create(i915, 16384);
>	gem_write(i915, scratch, 0, &bbe, sizeof(bbe));
>	obj.handle = scratch;
> +	execbuf.rsvd1 = ctx[0]->id;
>	gem_execbuf(i915, &execbuf);
>	obj.flags |= EXEC_OBJECT_PINNED; /* reuse this address */
>	execbuf.rsvd1 = ctx[1]->id; /* and bind the second context image */
> --
> 2.25.1
>


More information about the igt-dev mailing list