[Intel-gfx] [PATCH i-g-t v2 18/33] tests/kms_pipe_color: Add support for dynamic number of planes

Mika Kahola mika.kahola at intel.com
Wed Jan 25 12:41:16 UTC 2017


Reviewed-by: Mika Kahola <mika.kahola at intel.com>

On Tue, 2017-01-24 at 18:33 -0500, Robert Foss wrote:
> Add changes reflecting the new support for dynamic number of planes
> per pipe.
> 
> Signed-off-by: Robert Foss <robert.foss at collabora.com>
> ---
>  tests/kms_pipe_color.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/tests/kms_pipe_color.c b/tests/kms_pipe_color.c
> index 1aff7d54..c7a5d2f1 100644
> --- a/tests/kms_pipe_color.c
> +++ b/tests/kms_pipe_color.c
> @@ -857,9 +857,9 @@ run_tests_for_pipe(data_t *data, enum pipe p)
>  		igt_require(p < data->display.n_pipes);
>  
>  		pipe = &data->display.pipes[p];
> -		igt_require(pipe->n_planes >= IGT_PLANE_PRIMARY);
> +		igt_require(pipe->n_planes >= 0);
>  
> -		primary = &pipe->planes[IGT_PLANE_PRIMARY];
> +		primary = igt_pipe_get_plane_type(pipe,
> DRM_PLANE_TYPE_PRIMARY);
>  
>  		data->pipe_crc = igt_pipe_crc_new(primary->pipe-
> >pipe,
>  						  INTEL_PIPE_CRC_SOU
> RCE_AUTO);
-- 
Mika Kahola - Intel OTC



More information about the Intel-gfx mailing list