[Intel-gfx] [PATCH i-g-t] tests/gem_exec_params: add test for exec_fence params

Chris Wilson chris at chris-wilson.co.uk
Fri Feb 3 23:00:26 UTC 2017


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


More information about the Intel-gfx mailing list