Re: [PATCH i-g-t v2 14/33] tests/kms_legacy_colorkey: Add support for dynamic number of planes

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

 



Reviewed-by: Mika Kahola <mika.kahola@xxxxxxxxx>

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@xxxxxxxxxxxxx>
> ---
>  tests/kms_legacy_colorkey.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
> 
> diff --git a/tests/kms_legacy_colorkey.c
> b/tests/kms_legacy_colorkey.c
> index 25f98aad..150520ce 100644
> --- a/tests/kms_legacy_colorkey.c
> +++ b/tests/kms_legacy_colorkey.c
> @@ -55,8 +55,10 @@ igt_simple_main
>  
>  	for_each_pipe(&display, p) {
>  		for_each_plane_on_pipe(&display, p, plane) {
> +			bool is_valid = (plane->type ==
> DRM_PLANE_TYPE_PRIMARY ||
> +			                 plane->type ==
> DRM_PLANE_TYPE_CURSOR);
>  			test_plane(plane->drm_plane->plane_id,
> -				   (plane->is_cursor || plane-
> >is_primary) ? -ENOENT : 0);
> +				   is_valid ? -ENOENT : 0);
>  
>  			max_id = max(max_id, plane->drm_plane-
> >plane_id);
>  		}
-- 
Mika Kahola - Intel OTC

_______________________________________________
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