[igt-dev] [PATCH i-g-t] igt: Use lib gem_execbuf where possible

Chris Wilson chris at chris-wilson.co.uk
Fri Feb 9 09:43:05 UTC 2018


Quoting Antonio Argenziano (2018-02-09 00:21:57)
> diff --git a/tests/gem_busy.c b/tests/gem_busy.c
> index c349c291..444c1dd1 100644
> --- a/tests/gem_busy.c
> +++ b/tests/gem_busy.c
> @@ -332,11 +332,6 @@ static void alarm_handler(int sig)
>  {
>  }
>  
> -static int __execbuf(int fd, struct drm_i915_gem_execbuffer2 *execbuf)
> -{
> -       return ioctl(fd, DRM_IOCTL_I915_GEM_EXECBUFFER2, execbuf);
> -}

Wrong. There's an important difference here, can you see it? It's all to
do with signal handling...
-Chris


More information about the igt-dev mailing list