On Fri, Feb 03, 2017 at 02:45:30PM -0800, Daniele Ceraolo Spurio wrote:
> @@ -283,6 +287,21 @@ igt_main
>               RUN_FAIL(EINVAL);
>       }
>  
> +     igt_subtest("invalid-fence-in") {
> +             igt_require(gem_has_exec_fence(fd));
> +             execbuf.flags = LOCAL_I915_EXEC_FENCE_IN;
> +             execbuf.rsvd2 = -1;
> +             RUN_FAIL(EINVAL);

Another good invalid fd to test would be the device fd itself.
-Chris

-- 
Chris Wilson, Intel Open Source Technology Centre
_______________________________________________
Intel-gfx mailing list
Intel-gfx@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/intel-gfx

Reply via email to