[igt-dev] [PATCH i-g-t 1/1] tests/kms_big_fb: Set plane position and framebuffer dimensions before commit

Ville Syrjälä ville.syrjala at linux.intel.com
Thu Feb 13 15:13:47 UTC 2020


On Thu, Feb 13, 2020 at 10:48:45AM +0530, Mohammed Khajapasha wrote:
> Set the plane position and weight and height for small framebuffer
> before committing it in for loop.
> 
> Signed-off-by: Mohammed Khajapasha <mohammed.khajapasha at intel.com>
> ---
>  tests/kms_big_fb.c | 3 +++
>  1 file changed, 3 insertions(+)
> 
> diff --git a/tests/kms_big_fb.c b/tests/kms_big_fb.c
> index eb144da9..6ba96a99 100644
> --- a/tests/kms_big_fb.c
> +++ b/tests/kms_big_fb.c
> @@ -286,6 +286,7 @@ static bool test_plane(data_t *data)
>  		}
>  
>  		igt_plane_set_fb(plane, small_fb);
> +		igt_plane_set_position(plane, 0, 0);
>  		igt_plane_set_size(plane, data->width, data->height);
>  
>  		/*
> @@ -318,6 +319,8 @@ static bool test_plane(data_t *data)
>  		copy_pattern(data, small_fb, 0, 0, big_fb, x, y,
>  			     small_fb->width, small_fb->height);
>  
> +		igt_fb_set_size(small_fb, plane, small_fb->width, small_fb->height);
> +

igt_plane_set_fb() already does these.

>  		igt_display_commit2(&data->display, data->display.is_atomic ?
>  				    COMMIT_ATOMIC : COMMIT_UNIVERSAL);
>  
> -- 
> 2.24.1
> 
> _______________________________________________
> igt-dev mailing list
> igt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev

-- 
Ville Syrjälä
Intel


More information about the igt-dev mailing list