[Intel-gfx] [PATCH i-g-t] tests/kms_sequence: Add tests for new CRTC get/queue sequence ioctls

Petri Latvala petri.latvala at intel.com
Mon Oct 2 11:13:29 UTC 2017


On Sat, Sep 30, 2017 at 12:35:33PM -0700, keithp at keithp.com wrote:
> From: Keith Packard <keithp at keithp.com>
> 
> These ioctls replace drmWaitVBlank and add ns time resolution and
> 64-bit sequence numbers to comply with the Vulkan API specifications.
> 
> The tests were derived from the existing kms_vblank tests with the
> 'wait' variant elided as the new API doesn't provide a mechanism for
> blocking in the kernel.
> 
> Signed-off-by: Keith Packard <keithp at keithp.com>
> ---
>  lib/igt_kms.c          |   2 +-
>  lib/igt_kms.h          |   1 +
>  tests/Makefile.sources |   1 +
>  tests/kms_sequence.c   | 289 +++++++++++++++++++++++++++++++++++++++++++++++++
>  tests/meson.build      |   1 +
>  5 files changed, 293 insertions(+), 1 deletion(-)
>  create mode 100644 tests/kms_sequence.c
> 
> diff --git a/lib/igt_kms.c b/lib/igt_kms.c
> index 7bcafc07..61ecb1f2 100644
> --- a/lib/igt_kms.c
> +++ b/lib/igt_kms.c
> @@ -1983,7 +1983,7 @@ report_dup:
>  	}
>  }
>  
> -static igt_pipe_t *igt_output_get_driving_pipe(igt_output_t *output)
> +igt_pipe_t *igt_output_get_driving_pipe(igt_output_t *output)
>  {


Some documentation for this function is in order if it's made non-static.


-- 
Petri Latvala


More information about the Intel-gfx mailing list