[igt-dev] [PATCH i-g-t 2/4] tests/kms_plane: Reduce the plane size 64x64

Daniel Vetter daniel at ffwll.ch
Fri Mar 29 09:42:46 UTC 2019


On Thu, Mar 28, 2019 at 07:57:25PM +0200, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> 
> Reduce the plane size further to speed up the test. 64x64 is the
> universal i915 minimum cursor size so we'll use that. And since
> we choce wisely we'll make cursors use the reduced size as well.
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>

Reviewed-by: Daniel Vetter <daniel.vetter at ffwll.ch>

> ---
>  tests/kms_plane.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/tests/kms_plane.c b/tests/kms_plane.c
> index 143bc5e6f3b8..4007c894f87a 100644
> --- a/tests/kms_plane.c
> +++ b/tests/kms_plane.c
> @@ -499,12 +499,12 @@ static bool test_format_plane(data_t *data, enum pipe pipe,
>  		 IGT_FORMAT_ARGS(format),
>  		 kmstest_pipe_name(pipe), plane->index);
>  
> -	if (plane->type != DRM_PLANE_TYPE_CURSOR && data->display.is_atomic) {
> +	if (data->display.is_atomic) {
>  		struct igt_fb test_fb;
>  		int ret;
>  
> -		igt_create_fb(data->drm_fd, 256, 256, format,
> -				    LOCAL_DRM_FORMAT_MOD_NONE, &test_fb);
> +		igt_create_fb(data->drm_fd, 64, 64, format,
> +			      LOCAL_DRM_FORMAT_MOD_NONE, &test_fb);
>  
>  		igt_plane_set_fb(plane, &test_fb);
>  
> -- 
> 2.19.2
> 
> _______________________________________________
> igt-dev mailing list
> igt-dev at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/igt-dev

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


More information about the igt-dev mailing list