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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/intel-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]
  Powered by Linux