[igt-dev] [PATCH i-g-t] tests/i915/gem_exec_capture: Minor fix of bug in code
Dixit, Ashutosh
ashutosh.dixit at intel.com
Wed Nov 17 20:29:05 UTC 2021
On Wed, 17 Nov 2021 11:38:03 -0800, Arjun Melkaveri wrote:
>
> Minor fix of bug in code, This was causing Test assertion
> failure in function "__captureN" for gem_execbuf_wr.
Reviewed-by: Ashutosh Dixit <ashutosh.dixit at intel.com>
> Signed-off-by: Arjun Melkaveri <arjun.melkaveri at intel.com>
> ---
> tests/i915/gem_exec_capture.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/tests/i915/gem_exec_capture.c b/tests/i915/gem_exec_capture.c
> index 143d97ad..b80f597f 100644
> --- a/tests/i915/gem_exec_capture.c
> +++ b/tests/i915/gem_exec_capture.c
> @@ -428,7 +428,7 @@ __captureN(int fd, int dir, uint64_t ahnd, const intel_ctx_t *ctx,
>
> obj[0].handle = gem_create(fd, 4096);
> obj[0].offset = get_offset(ahnd, obj[0].handle, 4096, 0);
> - obj[0].flags = EXEC_OBJECT_WRITE | ahnd ? EXEC_OBJECT_PINNED : 0;
> + obj[0].flags = EXEC_OBJECT_WRITE | (ahnd ? EXEC_OBJECT_PINNED : 0);
>
> for (i = 0; i < count; i++) {
> obj[i + 1].handle = gem_create(fd, size);
> --
> 2.25.1
>
More information about the igt-dev
mailing list