[igt-dev] [PATCH i-g-t] tests/i915/gem_exec_nop: Resolve missing context id in sequential test

Dixit, Ashutosh ashutosh.dixit at intel.com
Thu Aug 26 17:47:04 UTC 2021


On Wed, 25 Aug 2021 23:27:14 -0700, Arjun Melkaveri wrote:
>
> Resolved missing context id in exec buf, for sequential test.
> This was due to context mutation changes that was implemeted in
> gem_exec_nop.

LGTM,

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_exec_nop.c | 1 +
>  1 file changed, 1 insertion(+)
>
> diff --git a/tests/i915/gem_exec_nop.c b/tests/i915/gem_exec_nop.c
> index 09a0c29e..c435335b 100644
> --- a/tests/i915/gem_exec_nop.c
> +++ b/tests/i915/gem_exec_nop.c
> @@ -749,6 +749,7 @@ static void sequential(int fd, uint32_t handle,
>	execbuf.buffer_count = 2;
>	execbuf.flags |= I915_EXEC_HANDLE_LUT;
>	execbuf.flags |= I915_EXEC_NO_RELOC;
> +	execbuf.rsvd1 = ctx->id;
>	igt_require(__gem_execbuf(fd, &execbuf) == 0);
>
>	if (flags & CONTEXT) {
> --
> 2.25.1
>


More information about the igt-dev mailing list