Addition of new plane scaling test cases
v8 cover Addition of new plane scaling test cases
In this series, combination of downscaling and upscaling testcases are added. Also, code refactoring is done for existing code.
v2:-minor fixes, to prevent CI crashes v3:-added subtests for testing upscaling/downscaling for
each plane individually (Ville)
-modified existing subtests for each N plane scaling
combo (Ville)
v4:-removal of i915sm (Ville)
-code reusablity (Ville)
v5:-use enum (Viile)
-limit while loop (Ville)
-add assert for fail/pass (Ville)
-added primary plane for testing (Ville)
v6:-after rebase, made changes accordingly to make
test cases consistent and for better coverage (Petri)
v7:-renaming of existing tests
-added 0.75 scaling factor downscaling tests (Petrii)
v8:-code cleanup
Swati Sharma (8):
tests/kms_plane_scaling: Removal of plane-scaling subtest tests/kms_plane_scaling: Cleanup
tests/kms_plane_scaling: Minor changes with existing tests tests/kms_plane_scaling: Addition of 0.75 scaling factor downscaling
tests
tests/kms_plane_scaling: Upscaling on 2 planes tests/kms_plane_scaling: Downscaling on 2 planes tests/kms_plane_scaling: Upscaling and downscaling scenario tests/kms_plane_scaling: Add negative test to check num of scalers
tests/kms_plane_scaling.c | 866 ++++++++++++++++++++------------------ 1 file changed, 468 insertions(+), 398 deletions(-)
Signature · 1 line
2.25.1
PATCH v8 1/8 tests/kms_plane_scaling: Removal of plane-scaling subtest
The test case has dead code, primary_plane_scaling is always 0. Also, upscaling and downscaling scenarios seems little bit messy. Lets simplify those scenarios by introducing new subtests covering both upscaling and downscaling.
--- tests/kms_plane_scaling.c | 179 -------------------------------------- 1 file changed, 179 deletions(-)
tests/kms_plane_scaling.c +0 -179
@@ -355,178 +355,6 @@ static void test_scaler_with_pixel_format_pipe(data_t *d, int width, int height, } } -/* does iterative scaling on plane2 */ -static void iterate_plane_scaling (data_t *d,drmModeModeInfo *mode) -{ -igt_display_t *display = &d->display; - -if (mode->hdisplay >= d->fb[1 ].width) { -int w, h; -/* fixed fb */ -igt_fb_set_position (&d->fb[1 ], d->plane2,0 ,0 ); -igt_fb_set_size (&d->fb[1 ], d->plane2, d->fb[1 ].width, d->fb[1 ].height); -igt_plane_set_position (d->plane2,0 ,0 ); - -/* adjust plane size */ -for (w = d->fb[1 ].width; w <= mode->hdisplay; w+=10 ) { - h = w * d->fb[1 ].height / d->fb[1 ].width; -igt_plane_set_size (d->plane2, w, h); -igt_display_commit2 (display,COMMIT_ATOMIC ); - } - }else { -int w, h; -/* fixed plane */ -igt_plane_set_position (d->plane2,0 ,0 ); -igt_plane_set_size (d->plane2, mode->hdisplay, mode->vdisplay); -igt_fb_set_position (&d->fb[1 ], d->plane2,0 ,0 ); - -/* adjust fb size */ -for (w = mode->hdisplay; w <= d->fb[1 ].width; w+=10 ) { -/* Source coordinates must not be clipped. */ - h =min (w * mode->hdisplay / mode->vdisplay, d->fb[1 ].height); -igt_fb_set_size (&d->fb[1 ], d->plane2, w, h); -igt_display_commit2 (display,COMMIT_ATOMIC ); - } - } -} - -static void -test_plane_scaling_on_pipe (data_t *d,enum pipe pipe,igt_output_t *output) -{ -igt_display_t *display = &d->display; -igt_pipe_t *pipe_obj = &display->pipes[pipe]; -drmModeModeInfo *mode; -int primary_plane_scaling =0 ;/* For now */ -uint64_t modifier =is_i915_device (display->drm_fd) ? -I915_FORMAT_MOD_X_TILED :DRM_FORMAT_MOD_LINEAR ; - -igt_require (get_num_scalers (d, pipe) >0 ); - -igt_skip_on (!igt_display_has_format_mod (display,DRM_FORMAT_XRGB8888 , - modifier)); - - mode =igt_output_get_mode (output); - -/* Set up display with plane 1 */ - d->plane1 =igt_pipe_get_plane_type (pipe_obj,DRM_PLANE_TYPE_PRIMARY ); -prepare_crtc (d, output, pipe, d->plane1, mode); - -igt_create_color_pattern_fb (display->drm_fd,600 ,600 , -DRM_FORMAT_XRGB8888 , - modifier, -.5 ,.5 ,.5 , &d->fb[1 ]); - -igt_create_pattern_fb (d->drm_fd, - mode->hdisplay, mode->vdisplay, -DRM_FORMAT_XRGB8888 , - modifier, - &d->fb[2 ]); - -if (primary_plane_scaling) { -/* Primary plane upscaling */ -igt_fb_set_position (&d->fb[0 ], d->plane1,100 ,100 ); -igt_fb_set_size (&d->fb[0 ], d->plane1,500 ,500 ); -igt_plane_set_position (d->plane1,0 ,0 ); -igt_plane_set_size (d->plane1, mode->hdisplay, mode->vdisplay); -igt_display_commit2 (display,COMMIT_ATOMIC ); - -/* Primary plane 1:1 no scaling */ -igt_fb_set_position (&d->fb[0 ], d->plane1,0 ,0 ); -igt_fb_set_size (&d->fb[0 ], d->plane1, d->fb[0 ].width, d->fb[0 ].height); -igt_plane_set_position (d->plane1,0 ,0 ); -igt_plane_set_size (d->plane1, mode->hdisplay, mode->vdisplay); -igt_display_commit2 (display,COMMIT_ATOMIC ); - } - -/* Set up fb[1]->plane2 mapping. */ - d->plane2 =igt_pipe_get_plane_type_index (pipe_obj, -DRM_PLANE_TYPE_OVERLAY ,0 ); - -if (!d->plane2) { -igt_debug ("Plane-2 doesnt exist on pipe %s\n" ,kmstest_pipe_name (pipe)); -return ; - } - -igt_plane_set_fb (d->plane2, &d->fb[1 ]); - -/* 2nd plane windowed */ -igt_fb_set_position (&d->fb[1 ], d->plane2,100 ,100 ); -igt_fb_set_size (&d->fb[1 ], d->plane2, d->fb[1 ].width-200 , d->fb[1 ].height-200 ); -igt_plane_set_position (d->plane2,100 ,100 ); -igt_plane_set_size (d->plane2, mode->hdisplay-200 , mode->vdisplay-200 ); -igt_display_commit2 (display,COMMIT_ATOMIC ); - -iterate_plane_scaling (d, mode); - -/* 2nd plane up scaling */ -igt_fb_set_position (&d->fb[1 ], d->plane2,100 ,100 ); -igt_fb_set_size (&d->fb[1 ], d->plane2,500 ,500 ); -igt_plane_set_position (d->plane2,10 ,10 ); -igt_plane_set_size (d->plane2, mode->hdisplay-20 , mode->vdisplay-20 ); -igt_display_commit2 (display,COMMIT_ATOMIC ); - -/* 2nd plane downscaling */ -igt_fb_set_position (&d->fb[1 ], d->plane2,0 ,0 ); -igt_fb_set_size (&d->fb[1 ], d->plane2, d->fb[1 ].width, d->fb[1 ].height); -igt_plane_set_position (d->plane2,10 ,10 ); - -/* Downscale (10/9)x of original image */ -igt_plane_set_size (d->plane2, (d->fb[1 ].width *10 )/9 , (d->fb[1 ].height *10 )/9 ); -igt_display_commit2 (display,COMMIT_ATOMIC ); - -if (primary_plane_scaling) { -/* Primary plane up scaling */ -igt_fb_set_position (&d->fb[0 ], d->plane1,100 ,100 ); -igt_fb_set_size (&d->fb[0 ], d->plane1,500 ,500 ); -igt_plane_set_position (d->plane1,0 ,0 ); -igt_plane_set_size (d->plane1, mode->hdisplay, mode->vdisplay); -igt_display_commit2 (display,COMMIT_ATOMIC ); - } - -/* Set up fb[2]->plane3 mapping. */ - d->plane3 =igt_pipe_get_plane_type_index (pipe_obj, -DRM_PLANE_TYPE_OVERLAY ,1 ); -if (!d->plane3) { -igt_debug ("Plane-3 doesnt exist on pipe %s\n" ,kmstest_pipe_name (pipe)); -return ; - } - -igt_plane_set_fb (d->plane3, &d->fb[2 ]); - -/* 3rd plane windowed - no scaling */ -igt_fb_set_position (&d->fb[2 ], d->plane3,100 ,100 ); -igt_fb_set_size (&d->fb[2 ], d->plane3, d->fb[2 ].width-300 , d->fb[2 ].height-300 ); -igt_plane_set_position (d->plane3,100 ,100 ); -igt_plane_set_size (d->plane3, mode->hdisplay-300 , mode->vdisplay-300 ); -igt_display_commit2 (display,COMMIT_ATOMIC ); - -/* Switch scaler from plane 2 to plane 3 */ -igt_fb_set_position (&d->fb[1 ], d->plane2,100 ,100 ); -igt_fb_set_size (&d->fb[1 ], d->plane2, d->fb[1 ].width-200 , d->fb[1 ].height-200 ); -igt_plane_set_position (d->plane2,100 ,100 ); -igt_plane_set_size (d->plane2, d->fb[1 ].width-200 , d->fb[1 ].height-200 ); - -igt_fb_set_position (&d->fb[2 ], d->plane3,100 ,100 ); -igt_fb_set_size (&d->fb[2 ], d->plane3, d->fb[2 ].width-400 , d->fb[2 ].height-400 ); -igt_plane_set_position (d->plane3,10 ,10 ); -igt_plane_set_size (d->plane3, mode->hdisplay-300 , mode->vdisplay-300 ); -igt_display_commit2 (display,COMMIT_ATOMIC ); - -if (primary_plane_scaling) { -/* Switch scaler from plane 1 to plane 2 */ -igt_fb_set_position (&d->fb[0 ], d->plane1,0 ,0 ); -igt_fb_set_size (&d->fb[0 ], d->plane1, d->fb[0 ].width, d->fb[0 ].height); -igt_plane_set_position (d->plane1,0 ,0 ); -igt_plane_set_size (d->plane1, mode->hdisplay, mode->vdisplay); - -igt_fb_set_position (&d->fb[1 ], d->plane2,100 ,100 ); -igt_fb_set_size (&d->fb[1 ], d->plane2, d->fb[1 ].width-500 ,d->fb[1 ].height-500 ); -igt_plane_set_position (d->plane2,100 ,100 ); -igt_plane_set_size (d->plane2, mode->hdisplay-200 , mode->vdisplay-200 ); -igt_display_commit2 (display,COMMIT_ATOMIC ); - } -} -static void __test_scaler_with_clipping_clamping_scenario (data_t *d,drmModeModeInfo *mode) {
@@ -751,13 +579,6 @@ igt_main_args("", long_opts, help_str, opt_handler, &data) igt_subtest_group {igt_output_t *output; -igt_describe ("Tests plane scaling per pipe." ); - igt_subtest_with_dynamic("plane-scaling") { -for_each_pipe_with_single_output (&data.display, pipe, output) - igt_dynamic_f("pipe-%s-plane-scaling", kmstest_pipe_name(pipe)) -test_plane_scaling_on_pipe (&data, pipe, output); - } -igt_describe ("Tests upscaling with pixel formats, from 20x20 fb." ); igt_subtest_with_dynamic("upscale-with-pixel-format-20x20") {for_each_pipe_with_single_output (&data.display, pipe, output)
Signature · 1 line
2.25.1
PATCH v8 2/8 tests/kms_plane_scaling: Cleanup
In reply to Swati SharmaIn this patch,
-improved indentation
-removed get_num_scalers() and used try_commit() -used test_pipe_iteration() to reduce exec. time -clipping/clamping can reuse same func() -removed unused var
--- tests/kms_plane_scaling.c | 289 ++++++++++---------------------------- 1 file changed, 77 insertions(+), 212 deletions(-)
tests/kms_plane_scaling.c +77 -212
@@ -26,47 +26,19 @@#include "igt_vec.h" #include <math.h> -IGT_TEST_DESCRIPTION ("Test display plane scaling" );typedef struct {uint32_t devid;int drm_fd;igt_display_t display; -igt_crc_t ref_crc; - -int image_w; -int image_h; -struct igt_fb fb[4 ]; - -igt_plane_t *plane1; -igt_plane_t *plane2; -igt_plane_t *plane3; -igt_plane_t *plane4;bool extended; }data_t ; -static int get_num_scalers (data_t * d,enum pipe pipe) -{ -if (!is_i915_device (d->drm_fd)) -return 1 ; - -igt_require (intel_display_ver (d->devid) >=9 ); - -if (intel_display_ver (d->devid) >=10 ) -return 2 ; -else if (pipe !=PIPE_C ) -return 2 ; -else -return 1 ; -} -static void cleanup_fbs (data_t *data) { -int i; - -for (i =0 ; i <ARRAY_SIZE (data->fb); i++) +for (int i =0 ; i <ARRAY_SIZE (data->fb); i++)igt_remove_fb (data->drm_fd, &data->fb[i]); }
@@ -77,47 +49,6 @@ static void cleanup_crtc(data_t *data)cleanup_fbs (data); } -static void prepare_crtc (data_t *data,igt_output_t *output,enum pipe pipe, -igt_plane_t *plane,drmModeModeInfo *mode) -{ -igt_display_t *display = &data->display; -uint64_t modifier =is_i915_device (data->drm_fd) ? -I915_FORMAT_MOD_X_TILED :DRM_FORMAT_MOD_LINEAR ; - -cleanup_crtc (data); - -igt_output_set_pipe (output, pipe); - -igt_skip_on (!igt_display_has_format_mod (display,DRM_FORMAT_XRGB8888 , - modifier)); - -/* allocate fb for plane 1 */ -igt_create_pattern_fb (data->drm_fd, mode->hdisplay, mode->vdisplay, -DRM_FORMAT_XRGB8888 , - modifier, - &data->fb[0 ]); - -igt_plane_set_fb (plane, &data->fb[0 ]); - -if (plane->type !=DRM_PLANE_TYPE_PRIMARY ) { -igt_plane_t *primary; -int ret; - -/* Do we succeed without enabling the primary plane? */ - ret =igt_display_try_commit2 (display,COMMIT_ATOMIC ); -if (!ret) -return ; - -/* -* Fallback: set the primary plane to actually enable the pipe. -* Some drivers always require the primary plane to be enabled. -*/ - primary =igt_output_get_plane_type (output,DRM_PLANE_TYPE_PRIMARY ); -igt_plane_set_fb (primary, &data->fb[0 ]); - } -igt_display_commit2 (display,COMMIT_ATOMIC ); -} - static void check_scaling_pipe_plane_rot(data_t *d, igt_plane_t *plane, uint32_t pixel_format, uint64_t modifier,
@@ -128,33 +59,33 @@ static void check_scaling_pipe_plane_rot(data_t *d, igt_plane_t *plane, igt_rotation_t rot) {igt_display_t *display = &d->display; -int commit_ret;drmModeModeInfo *mode; +int commit_ret; +int w, h; -cleanup_crtc (d); - -igt_output_set_pipe (output, pipe); mode =igt_output_get_mode (output); +if (is_upscale) { + w = width; + h = height; + }else { + w = mode->hdisplay; + h = mode->vdisplay; + } +/* -* Guarantee even value width/height to avoid fractional -* UV component in chroma subsampling for YUV 4:2:0 formats +* guarantee even value width/height to avoid fractional +* uv component in chroma subsampling for yuv 4:2:0 formats * */ - width =ALIGN (width,2 ); - height =ALIGN (height,2 ); - -if (is_upscale) -igt_create_color_fb (display->drm_fd, width, height, - pixel_format, modifier,0.0 ,1.0 ,0.0 , &d->fb[0 ]); -else -igt_create_color_fb (display->drm_fd, mode->hdisplay, mode->vdisplay, - pixel_format, modifier,0.0 ,1.0 ,0.0 , &d->fb[0 ]); + w =ALIGN (w,2 ); + h =ALIGN (h,2 ); +igt_create_color_fb (display->drm_fd, w, h, + pixel_format, modifier,0.0 ,1.0 ,0.0 , &d->fb[0 ]);igt_plane_set_fb (plane, &d->fb[0 ]); -igt_fb_set_position (&d->fb[0 ], plane,0 ,0 ); -igt_fb_set_size (&d->fb[0 ], plane, width, height); +igt_fb_set_size (&d->fb[0 ], plane, w, h);igt_plane_set_position (plane,0 ,0 );if (is_upscale)
@@ -170,7 +101,7 @@ static void check_scaling_pipe_plane_rot(data_t *d, igt_plane_t *plane,igt_skip_on_f (commit_ret == -ERANGE || commit_ret == -EINVAL ,"Unsupported scaling factor with fb size %dx%d\n" , - width, height); + w, h);igt_assert_eq (commit_ret,0 ); }
@@ -184,7 +115,6 @@ static const igt_rotation_t rotations[] = {static bool can_rotate (data_t *d,unsigned format,uint64_t modifier,igt_rotation_t rot) { -if (!is_i915_device (d->drm_fd))return true;
@@ -272,13 +202,13 @@ static void test_scaler_with_rotation_pipe(data_t *d, igt_output_t *output) {igt_display_t *display = &d->display; +uint64_t modifier =DRM_FORMAT_MOD_LINEAR ;igt_plane_t *plane; -uint64_t modifier =is_i915_device (d->drm_fd) ? -I915_FORMAT_MOD_Y_TILED :DRM_FORMAT_MOD_LINEAR ; -igt_require (get_num_scalers (d, pipe) >0 ); +cleanup_crtc (d);igt_output_set_pipe (output, pipe); +for_each_plane_on_pipe (display, pipe, plane) {if (plane->type ==DRM_PLANE_TYPE_CURSOR )continue ;
@@ -292,6 +222,9 @@ static void test_scaler_with_rotation_pipe(data_t *d,for (int j =0 ; j < plane->drm_plane->count_formats; j++) {unsigned format = plane->drm_plane->formats[j]; +if (!test_pipe_iteration (d, pipe, j)) +continue ; + if (test_format(d, &tested_formats, format) && igt_plane_has_format_mod(plane, format, modifier) && igt_plane_has_rotation(plane, rot) &&
@@ -323,7 +256,7 @@ static void test_scaler_with_pixel_format_pipe(data_t *d, int width, int height,igt_display_t *display = &d->display;igt_plane_t *plane; -igt_require (get_num_scalers (d, pipe) >0 ); +cleanup_crtc (d);igt_output_set_pipe (output, pipe);
@@ -340,6 +273,9 @@ static void test_scaler_with_pixel_format_pipe(data_t *d, int width, int height,for (int j =0 ; j < plane->drm_plane->count_formats; j++) {uint32_t format = plane->drm_plane->formats[j]; +if (!test_pipe_iteration (d, pipe, j)) +continue ; +if (test_format (d, &tested_formats, format) &&igt_plane_has_format_mod (plane, format, modifier) &&can_scale (d, format))
@@ -355,92 +291,6 @@ static void test_scaler_with_pixel_format_pipe(data_t *d, int width, int height, } } -static void -__test_scaler_with_clipping_clamping_scenario (data_t *d,drmModeModeInfo *mode) -{ -igt_plane_set_fb (d->plane1, &d->fb[1 ]); -igt_plane_set_fb (d->plane2, &d->fb[2 ]); - -igt_fb_set_position (&d->fb[1 ], d->plane1,0 ,0 ); -igt_fb_set_size (&d->fb[1 ], d->plane1,300 ,300 ); -igt_plane_set_position (d->plane1,100 ,400 ); -igt_fb_set_position (&d->fb[2 ], d->plane2,0 ,0 ); -igt_fb_set_size (&d->fb[2 ], d->plane2,400 ,400 ); -igt_plane_set_position (d->plane2,100 ,100 ); - -/* scaled window size is outside the modeset area.*/ -igt_plane_set_size (d->plane1, mode->hdisplay +200 , - mode->vdisplay +200 ); -igt_plane_set_size (d->plane2, mode->hdisplay +100 , - mode->vdisplay +100 ); - -/* -* Can't guarantee that the clipped coordinates are -* suitably aligned for yuv. So allow the commit to fail. -*/ -if (igt_format_is_yuv (d->fb[1 ].drm_format) || -igt_format_is_yuv (d->fb[2 ].drm_format)) -igt_display_try_commit2 (&d->display,COMMIT_ATOMIC ); -else -igt_display_commit2 (&d->display,COMMIT_ATOMIC ); -} - -static void -test_scaler_with_clipping_clamping_scenario (data_t *d,enum pipe pipe,igt_output_t *output) -{ -igt_pipe_t *pipe_obj = &d->display.pipes[pipe]; -drmModeModeInfo *mode; -struct igt_vec tested_formats1; - -igt_require (get_num_scalers (d, pipe) >=2 ); - - mode =igt_output_get_mode (output); - d->plane1 =igt_pipe_get_plane_type (pipe_obj,DRM_PLANE_TYPE_PRIMARY ); - d->plane2 =igt_pipe_get_plane_type (pipe_obj,DRM_PLANE_TYPE_OVERLAY ); -prepare_crtc (d, output, pipe, d->plane1, mode); - -igt_vec_init (&tested_formats1,sizeof (uint32_t )); - -for (int i =0 ; i < d->plane1->drm_plane->count_formats; i++) { -unsigned f1 = d->plane1->drm_plane->formats[i]; -struct igt_vec tested_formats2; - -if (!test_pipe_iteration (d, pipe, i)) -continue ; - -if (!test_format (d, &tested_formats1, f1) || - !can_scale (d, f1)) -continue ; - -igt_vec_init (&tested_formats2,sizeof (uint32_t )); - -igt_create_pattern_fb (d->drm_fd, - mode->hdisplay, mode->vdisplay, f1, -I915_FORMAT_MOD_X_TILED , &d->fb[1 ]); - -for (int j =0 ; j < d->plane2->drm_plane->count_formats; j++) { -unsigned f2 = d->plane2->drm_plane->formats[j]; - -if (!test_format (d, &tested_formats2, f2) || - !can_scale (d, f2)) -continue ; - -igt_create_pattern_fb (d->drm_fd, - mode->hdisplay, mode->vdisplay, f2, -I915_FORMAT_MOD_Y_TILED , - &d->fb[2 ]); - -__test_scaler_with_clipping_clamping_scenario (d, mode); -igt_remove_fb (d->drm_fd, &d->fb[2 ]); - } -igt_remove_fb (d->drm_fd, &d->fb[1 ]); - -igt_vec_fini (&tested_formats2); - } - -igt_vec_fini (&tested_formats1); -} -static void find_connected_pipe (igt_display_t *display,bool second,enum pipe *pipe,igt_output_t **output) {enum pipe first =PIPE_NONE ;
@@ -472,9 +322,9 @@ static void test_scaler_with_multi_pipe_plane(data_t *d)igt_display_t *display = &d->display;igt_output_t *output1, *output2;drmModeModeInfo *mode1, *mode2; +igt_plane_t *plane[4 ];enum pipe pipe1, pipe2; -uint64_t modifier =is_i915_device (display->drm_fd) ? -I915_FORMAT_MOD_Y_TILED :DRM_FORMAT_MOD_LINEAR ; +int ret1, ret2;cleanup_crtc (d);
@@ -486,36 +336,32 @@ static void test_scaler_with_multi_pipe_plane(data_t *d)igt_output_set_pipe (output1, pipe1);igt_output_set_pipe (output2, pipe2); - d->plane1 =igt_output_get_plane (output1,0 ); - d->plane2 =get_num_scalers (d, pipe1) >=2 ?igt_output_get_plane (output1,1 ) :NULL ; - d->plane3 =igt_output_get_plane (output2,0 ); - d->plane4 =get_num_scalers (d, pipe2) >=2 ?igt_output_get_plane (output2,1 ) :NULL ; - -igt_skip_on (!igt_display_has_format_mod (display,DRM_FORMAT_XRGB8888 , - modifier)); + plane[0 ] =igt_output_get_plane (output1,0 ); +igt_require (plane[0 ]); + plane[1 ] =igt_output_get_plane (output1,0 ); +igt_require (plane[1 ]); + plane[2 ] =igt_output_get_plane (output2,1 ); +igt_require (plane[2 ]); + plane[3 ] =igt_output_get_plane (output2,1 ); +igt_require (plane[3 ]);igt_create_pattern_fb (d->drm_fd,600 ,600 ,DRM_FORMAT_XRGB8888 , - modifier, &d->fb[0 ]); - +I915_TILING_NONE , &d->fb[0 ]);igt_create_pattern_fb (d->drm_fd,500 ,500 ,DRM_FORMAT_XRGB8888 , - modifier, &d->fb[1 ]); - +I915_TILING_NONE , &d->fb[1 ]);igt_create_pattern_fb (d->drm_fd,700 ,700 ,DRM_FORMAT_XRGB8888 , - modifier, &d->fb[2 ]); - +I915_TILING_NONE , &d->fb[2 ]);igt_create_pattern_fb (d->drm_fd,400 ,400 ,DRM_FORMAT_XRGB8888 , - modifier, &d->fb[3 ]); +I915_TILING_NONE , &d->fb[3 ]); -igt_plane_set_fb (d->plane1, &d->fb[0 ]); -if (d->plane2) -igt_plane_set_fb (d->plane2, &d->fb[1 ]); -igt_plane_set_fb (d->plane3, &d->fb[2 ]); -if (d->plane4) -igt_plane_set_fb (d->plane4, &d->fb[3 ]); +igt_plane_set_fb (plane[0 ], &d->fb[0 ]); +igt_plane_set_fb (plane[1 ], &d->fb[1 ]); +igt_plane_set_fb (plane[2 ], &d->fb[2 ]); +igt_plane_set_fb (plane[3 ], &d->fb[3 ]); if (igt_display_try_commit_atomic(display, DRM_MODE_ATOMIC_TEST_ONLY |
@@ -530,15 +376,25 @@ static void test_scaler_with_multi_pipe_plane(data_t *d) mode1 =igt_output_get_mode (output1); mode2 =igt_output_get_mode (output2); -/* Upscaling Primary */ -igt_plane_set_size (d->plane1, mode1->hdisplay, mode1->vdisplay); -igt_plane_set_size (d->plane3, mode2->hdisplay, mode2->vdisplay); -igt_display_commit2 (display,COMMIT_ATOMIC ); - -/* Upscaling Sprites */ -igt_plane_set_size (d->plane2 ?: d->plane1, mode1->hdisplay, mode1->vdisplay); -igt_plane_set_size (d->plane4 ?: d->plane3, mode2->hdisplay, mode2->vdisplay); -igt_display_commit2 (display,COMMIT_ATOMIC ); +/* upscaling primary */ +igt_plane_set_size (plane[0 ], mode1->hdisplay, mode1->vdisplay); +igt_plane_set_size (plane[2 ], mode2->hdisplay, mode2->vdisplay); + ret1 =igt_display_try_commit2 (display,COMMIT_ATOMIC ); + +/* upscaling sprites */ +igt_plane_set_size (plane[1 ], mode1->hdisplay, mode1->vdisplay); +igt_plane_set_size (plane[3 ], mode2->hdisplay, mode2->vdisplay); + ret2 =igt_display_try_commit2 (display,COMMIT_ATOMIC ); + +igt_plane_set_fb (plane[0 ],NULL ); +igt_plane_set_fb (plane[1 ],NULL ); +igt_plane_set_fb (plane[2 ],NULL ); +igt_plane_set_fb (plane[3 ],NULL ); + +igt_skip_on_f (ret1 == -ERANGE || ret1 == -EINVAL || + ret2 == -ERANGE || ret1 == -EINVAL , +"Scaling op is not supported by driver\n" ); +igt_assert_eq (ret1 && ret2,0 ); }static int opt_handler (int opt,int opt_index,void *_data)
@@ -605,6 +461,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)drmModeModeInfo *mode; mode =igt_output_get_mode (output); + igt_dynamic_f("pipe-%s-downscale-with-pixel-format", kmstest_pipe_name(pipe))test_scaler_with_pixel_format_pipe (&data, mode->hdisplay /4 , mode->vdisplay /4 , false, pipe, output);
@@ -623,6 +480,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data) mode->vdisplay / 2, false, pipe, output); } } +igt_describe ("Tests scaling with pixel formats, unity scaling." ); igt_subtest_with_dynamic("scaler-with-pixel-format-unity-scaling") {for_each_pipe_with_single_output (&data.display, pipe, output) {
@@ -681,6 +539,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data) mode->vdisplay / 2, false, pipe, output); } } +igt_describe ("Tests scaling with tiling rotation, unity scaling." ); igt_subtest_with_dynamic("scaler-with-rotation-unity-scaling") {for_each_pipe_with_single_output (&data.display, pipe, output) {
@@ -696,9 +555,15 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)igt_describe ("Tests scaling with clipping and clamping." ); igt_subtest_with_dynamic("scaler-with-clipping-clamping") { -for_each_pipe_with_single_output (&data.display, pipe, output) +for_each_pipe_with_single_output (&data.display, pipe, output) { +drmModeModeInfo *mode; + + mode =igt_output_get_mode (output); + igt_dynamic_f("pipe-%s-scaler-with-clipping-clamping", kmstest_pipe_name(pipe)) -test_scaler_with_clipping_clamping_scenario (&data, pipe, output); +test_scaler_with_pixel_format_pipe (&data, mode->hdisplay +100 , + mode->vdisplay +100 , false, pipe, output); + } } }
Signature · 1 line
2.25.1
PATCH v8 3/8 tests/kms_plane_scaling: Minor changes with existing tests
In reply to Swati SharmaIn this patch,
-output name is added to dynamic subtests
-rename of existing tests
-change in multiplier
--- tests/kms_plane_scaling.c | 70 +++++++++++++++++++-------------------- 1 file changed, 35 insertions(+), 35 deletions(-)
tests/kms_plane_scaling.c +35 -35
@@ -438,46 +438,46 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)igt_describe ("Tests upscaling with pixel formats, from 20x20 fb." ); igt_subtest_with_dynamic("upscale-with-pixel-format-20x20") {for_each_pipe_with_single_output (&data.display, pipe, output) - igt_dynamic_f("pipe-%s-upscale-with-pixel-format", kmstest_pipe_name(pipe)) + igt_dynamic_f("pipe-%s-%s-upscale-with-pixel-format", kmstest_pipe_name(pipe), igt_output_name(output))test_scaler_with_pixel_format_pipe (&data,20 ,20 , true, pipe, output); } -igt_describe ("Tests upscaling with pixel formats, scaling factor 4." ); - igt_subtest_with_dynamic("upscale-with-pixel-format-factor-4") { +igt_describe ("Tests upscaling with pixel formats for 0.25 scaling factor." ); + igt_subtest_with_dynamic("upscale-with-pixel-format-factor-0-25") {for_each_pipe_with_single_output (&data.display, pipe, output) {drmModeModeInfo *mode; mode =igt_output_get_mode (output); - igt_dynamic_f("pipe-%s-upscale-with-pixel-format", kmstest_pipe_name(pipe)) -test_scaler_with_pixel_format_pipe (&data, mode->hdisplay /4 , - mode->vdisplay /4 , true, pipe, output); + igt_dynamic_f("pipe-%s-%s-upscale-with-pixel-format", kmstest_pipe_name(pipe), igt_output_name(output)) +test_scaler_with_pixel_format_pipe (&data,0.25 * mode->hdisplay, +0.25 * mode->vdisplay, true, pipe, output); } } -igt_describe ("Tests downscaling with pixel formats, scaling factor 4." ); - igt_subtest_with_dynamic("downscale-with-pixel-format-factor-4") { +igt_describe ("Tests downscaling with pixel formats for 0.25 scaling factor." ); + igt_subtest_with_dynamic("downscale-with-pixel-format-factor-0-25") {for_each_pipe_with_single_output (&data.display, pipe, output) {drmModeModeInfo *mode; mode =igt_output_get_mode (output); - igt_dynamic_f("pipe-%s-downscale-with-pixel-format", kmstest_pipe_name(pipe)) -test_scaler_with_pixel_format_pipe (&data, mode->hdisplay /4 , - mode->vdisplay /4 , false, pipe, output); + igt_dynamic_f("pipe-%s-%s-downscale-with-pixel-format", kmstest_pipe_name(pipe), igt_output_name(output)) +test_scaler_with_pixel_format_pipe (&data,0.25 * mode->hdisplay, +0.25 * mode->vdisplay, false, pipe, output); } } -igt_describe ("Tests downscaling with pixel formats, scaling factor 2." ); - igt_subtest_with_dynamic("downscale-with-pixel-format-factor-2") { +igt_describe ("Tests downscaling with pixel formats for 0.5 scaling factor." ); + igt_subtest_with_dynamic("downscale-with-pixel-format-factor-0-5") {for_each_pipe_with_single_output (&data.display, pipe, output) {drmModeModeInfo *mode; mode =igt_output_get_mode (output); - igt_dynamic_f("pipe-%s-downscale-with-pixel-format", kmstest_pipe_name(pipe)) -test_scaler_with_pixel_format_pipe (&data, mode->hdisplay /2 , - mode->vdisplay /2 , false, pipe, output); + igt_dynamic_f("pipe-%s-%s-downscale-with-pixel-format", kmstest_pipe_name(pipe), igt_output_name(output)) +test_scaler_with_pixel_format_pipe (&data,0.5 * mode->hdisplay, +0.5 * mode->vdisplay, false, pipe, output); } }
@@ -488,7 +488,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data) mode =igt_output_get_mode (output); - igt_dynamic_f("pipe-%s-scaler-with-pixel-format", kmstest_pipe_name(pipe)) + igt_dynamic_f("pipe-%s-%s-scaler-with-pixel-format", kmstest_pipe_name(pipe), igt_output_name(output))test_scaler_with_pixel_format_pipe (&data, mode->hdisplay, mode->vdisplay, true, pipe, output); }
@@ -497,46 +497,46 @@ igt_main_args("", long_opts, help_str, opt_handler, &data)igt_describe ("Tests upscaling with tiling rotation, from 20x20 fb." ); igt_subtest_with_dynamic("upscale-with-rotation-20x20") {for_each_pipe_with_single_output (&data.display, pipe, output) - igt_dynamic_f("pipe-%s-upscale-with-rotation", kmstest_pipe_name(pipe)) + igt_dynamic_f("pipe-%s-%s-upscale-with-rotation", kmstest_pipe_name(pipe), igt_output_name(output))test_scaler_with_rotation_pipe (&data,20 ,20 , true, pipe, output); } -igt_describe ("Tests upscaling with tiling rotation, scaling factor 4." ); - igt_subtest_with_dynamic("upscale-with-rotation-factor-4") { +igt_describe ("Tests upscaling with tiling rotation for 0.25 scaling factor." ); + igt_subtest_with_dynamic("upscale-with-rotation-factor-0-25") {for_each_pipe_with_single_output (&data.display, pipe, output) {drmModeModeInfo *mode; mode =igt_output_get_mode (output); - igt_dynamic_f("pipe-%s-upscale-with-rotation", kmstest_pipe_name(pipe)) -test_scaler_with_rotation_pipe (&data, mode->hdisplay /4 , - mode->vdisplay /4 , true, pipe, output); + igt_dynamic_f("pipe-%s-%s-upscale-with-rotation", kmstest_pipe_name(pipe), igt_output_name(output)) +test_scaler_with_rotation_pipe (&data,0.25 * mode->hdisplay, +0.25 * mode->vdisplay, true, pipe, output); } } -igt_describe ("Tests downscaling with tiling rotation, scaling factor 4." ); - igt_subtest_with_dynamic("downscale-with-rotation-factor-4") { +igt_describe ("Tests downscaling with tiling rotation for 0.25 scaling factor." ); + igt_subtest_with_dynamic("downscale-with-rotation-factor-0-25") {for_each_pipe_with_single_output (&data.display, pipe, output) {drmModeModeInfo *mode; mode =igt_output_get_mode (output); - igt_dynamic_f("pipe-%s-downscale-with-rotation", kmstest_pipe_name(pipe)) -test_scaler_with_rotation_pipe (&data, mode->hdisplay /4 , - mode->vdisplay /4 , false, pipe, output); + igt_dynamic_f("pipe-%s-%s-downscale-with-rotation", kmstest_pipe_name(pipe), igt_output_name(output)) +test_scaler_with_rotation_pipe (&data,0.25 * mode->hdisplay, +0.25 * mode->vdisplay, false, pipe, output); } } -igt_describe ("Tests downscaling with tiling rotation, scaling factor 2." ); - igt_subtest_with_dynamic("downscale-with-rotation-factor-2") { +igt_describe ("Tests downscaling with tiling rotation for 0.5 scaling factor." ); + igt_subtest_with_dynamic("downscale-with-rotation-factor-0-5") {for_each_pipe_with_single_output (&data.display, pipe, output) {drmModeModeInfo *mode; mode =igt_output_get_mode (output); - igt_dynamic_f("pipe-%s-downscale-with-rotation", kmstest_pipe_name(pipe)) -test_scaler_with_rotation_pipe (&data, mode->hdisplay /2 , - mode->vdisplay /2 , false, pipe, output); + igt_dynamic_f("pipe-%s-%s-downscale-with-rotation", kmstest_pipe_name(pipe), igt_output_name(output)) +test_scaler_with_rotation_pipe (&data,0.5 * mode->hdisplay, +0.5 * mode->vdisplay, false, pipe, output); } }
@@ -547,7 +547,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data) mode =igt_output_get_mode (output); - igt_dynamic_f("pipe-%s-scaler-with-rotation", kmstest_pipe_name(pipe)) + igt_dynamic_f("pipe-%s-%s-scaler-with-rotation", kmstest_pipe_name(pipe), igt_output_name(output))test_scaler_with_rotation_pipe (&data, mode->hdisplay, mode->vdisplay, true, pipe, output); }
@@ -560,7 +560,7 @@ igt_main_args("", long_opts, help_str, opt_handler, &data) mode =igt_output_get_mode (output); - igt_dynamic_f("pipe-%s-scaler-with-clipping-clamping", kmstest_pipe_name(pipe)) + igt_dynamic_f("pipe-%s-%s-scaler-with-clipping-clamping", kmstest_pipe_name(pipe), igt_output_name(output))test_scaler_with_pixel_format_pipe (&data, mode->hdisplay +100 , mode->vdisplay +100 , false, pipe, output); }
Signature · 1 line
2.25.1
PATCH v8 4/8 tests/kms_plane_scaling: Addition of 0.75 scaling factor downscaling tests
In reply to Swati Sharma--- tests/kms_plane_scaling.c | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+)
tests/kms_plane_scaling.c +26 -0
@@ -481,6 +481,19 @@ igt_main_args("", long_opts, help_str, opt_handler, &data) } } +igt_describe ("Tests downscaling with pixel formats for 0.75 scaling factor." ); + igt_subtest_with_dynamic("downscale-with-pixel-format-factor-0-75") { +for_each_pipe_with_single_output (&data.display, pipe, output) { +drmModeModeInfo *mode; + + mode =igt_output_get_mode (output); + + igt_dynamic_f("pipe-%s-%s-downscale-with-pixel-format", kmstest_pipe_name(pipe), igt_output_name(output)) +test_scaler_with_pixel_format_pipe (&data,0.75 * mode->hdisplay, +0.75 * mode->vdisplay, false, pipe, output); + } + } +igt_describe ("Tests scaling with pixel formats, unity scaling." ); igt_subtest_with_dynamic("scaler-with-pixel-format-unity-scaling") {for_each_pipe_with_single_output (&data.display, pipe, output) {
@@ -540,6 +553,19 @@ igt_main_args("", long_opts, help_str, opt_handler, &data) } } +igt_describe ("Tests downscaling with tiling rotation for 0.75 scaling factor." ); + igt_subtest_with_dynamic("downscale-with-rotation-factor-0-75") { +for_each_pipe_with_single_output (&data.display, pipe, output) { +drmModeModeInfo *mode; + + mode =igt_output_get_mode (output); + + igt_dynamic_f("pipe-%s-%s-downscale-with-rotation", kmstest_pipe_name(pipe), igt_output_name(output)) +test_scaler_with_rotation_pipe (&data,0.75 * mode->hdisplay, +0.75 * mode->vdisplay, false, pipe, output); + } + } +igt_describe ("Tests scaling with tiling rotation, unity scaling." ); igt_subtest_with_dynamic("scaler-with-rotation-unity-scaling") {for_each_pipe_with_single_output (&data.display, pipe, output) {
Signature · 1 line
2.25.1
PATCH v8 5/8 tests/kms_plane_scaling: Upscaling on 2 planes
In reply to Swati Sharmai915 driver supports 2 scalers per pipe. Added test case to upscale 2 planes simultaneously on single pipe.
v2: -add check for min 2 scalers
-add igt_require() for overlay planes, fixes CRASH on KBL
v3: -test modified for n planes (Ville)
v4: -modularized the code
-removed i915 dependency (Ville)
v5: -added primary plane back (Ville)
-whitespace fixed (Ville)
v6: -rebase
-modified tests after rebase for consistency and more coverage (Petri)
v7: -renaming tests
--- tests/kms_plane_scaling.c | 122 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 122 insertions(+)
tests/kms_plane_scaling.c +122 -0
@@ -28,6 +28,10 @@IGT_TEST_DESCRIPTION ("Test display plane scaling" ); +enum scaler_combo_test_type { +TEST_PLANES_UPSCALE =0 , +}; + typedef struct { uint32_t devid; int drm_fd;
@@ -317,6 +321,86 @@ static void find_connected_pipe(igt_display_t *display, bool second, enum pipe *igt_require_f (found,"No valid outputs found\n" ); } +static void +__test_planes_scaling_combo (data_t *d,int w1,int h1,int w2,int h2, +enum pipe pipe,igt_output_t *output, +igt_plane_t *p1,igt_plane_t *p2, +struct igt_fb *fb1,struct igt_fb *fb2, +enum scaler_combo_test_type test_type) +{ +igt_display_t *display = &d->display; +drmModeModeInfo *mode; +int ret; + + mode =igt_output_get_mode (output); + +igt_plane_set_fb (p1, fb1); +igt_plane_set_fb (p2, fb2); + +if (test_type ==TEST_PLANES_UPSCALE ) { +/* first plane upscaling */ +igt_plane_set_size (p1, mode->hdisplay, mode->vdisplay); +/* second plane upscaling */ +igt_plane_set_size (p2, mode->hdisplay -20 , mode->vdisplay -20 ); + } + + ret =igt_display_try_commit_atomic (display,DRM_MODE_ATOMIC_ALLOW_MODESET ,NULL ); + +igt_plane_set_fb (p1,NULL ); +igt_plane_set_fb (p2,NULL ); + +igt_skip_on_f (ret == -EINVAL || ret == -ERANGE , +"Scaling op not supported by driver\n" ); +igt_assert_eq (ret,0 ); +} + +static void setup_fb (int fd,int width,int height, +double r,double g,double b, +struct igt_fb *fb) +{ +igt_create_color_pattern_fb (fd, width, height, +DRM_FORMAT_XRGB8888 , +I915_TILING_NONE , + r, g, b, fb); +} + +static void +test_planes_scaling_combo (data_t *d,int w1,int h1,int w2,int h2, +enum pipe pipe,igt_output_t *output, +enum scaler_combo_test_type test_type) +{ +igt_display_t *display = &d->display; + +cleanup_crtc (d); + +igt_output_set_pipe (output, pipe); + +if (test_type ==TEST_PLANES_UPSCALE ) { +setup_fb (display->drm_fd, w1, h1,1.0 ,0.0 ,0.0 , &d->fb[1 ]); +setup_fb (display->drm_fd, w2, h2,0.0 ,1.0 ,0.0 , &d->fb[2 ]); + } + +for (int k =0 ; k < display->pipes[pipe].n_planes; k++) { +igt_plane_t *p1, *p2; + + p1 = &display->pipes[pipe].planes[k]; +igt_require (p1); + p2 = &display->pipes[pipe].planes[k+1 ]; +igt_require (p2); + +if (p1->type ==DRM_PLANE_TYPE_CURSOR || p2->type ==DRM_PLANE_TYPE_CURSOR ) +continue ; + +__test_planes_scaling_combo (d, w1, h1, w2, h2, + pipe, output, p1, p2, + &d->fb[1 ], &d->fb[2 ], + test_type); + } + +igt_remove_fb (display->drm_fd, &d->fb[1 ]); +igt_remove_fb (display->drm_fd, &d->fb[2 ]); +} +static void test_scaler_with_multi_pipe_plane (data_t *d) {igt_display_t *display = &d->display;
@@ -591,6 +675,44 @@ igt_main_args("", long_opts, help_str, opt_handler, &data) mode->vdisplay + 100, false, pipe, output); } } + +igt_describe ("Tests upscaling of 2 planes, from 20x20 fb." ); + igt_subtest_with_dynamic("planes-upscale-20x20") { +for_each_pipe_with_single_output (&data.display, pipe, output) + igt_dynamic_f("pipe-%s-%s-planes-upscale", kmstest_pipe_name(pipe), igt_output_name(output)) +test_planes_scaling_combo (&data,20 ,20 ,20 ,20 , + pipe, output,TEST_PLANES_UPSCALE ); + } + +igt_describe ("Tests upscaling of 2 planes for 0.25 scaling factor." ); + igt_subtest_with_dynamic("planes-upscale-factor-0-25") { +for_each_pipe_with_single_output (&data.display, pipe, output) + igt_dynamic_f("pipe-%s-%s-planes-upscale", kmstest_pipe_name(pipe), igt_output_name(output)) { +drmModeModeInfo *mode; + + mode =igt_output_get_mode (output); + +test_planes_scaling_combo (&data, +0.25 * mode->hdisplay,0.25 * mode->vdisplay, +0.25 * mode->hdisplay,0.25 * mode->vdisplay, + pipe, output,TEST_PLANES_UPSCALE ); + } + } + +igt_describe ("Tests scaling of 2 planes, unity scaling." ); + igt_subtest_with_dynamic("planes-scaling-unity-scaling") { +for_each_pipe_with_single_output (&data.display, pipe, output) + igt_dynamic_f("pipe-%s-%s-planes-unity-scaling", kmstest_pipe_name(pipe), igt_output_name(output)) { +drmModeModeInfo *mode; + + mode =igt_output_get_mode (output); + +test_planes_scaling_combo (&data, + mode->hdisplay, mode->vdisplay, + mode->hdisplay, mode->vdisplay, + pipe, output,TEST_PLANES_UPSCALE ); + } + } }igt_describe ("Tests scaling with multi-pipe scenario." );
Signature · 1 line
2.25.1
PATCH v8 6/8 tests/kms_plane_scaling: Downscaling on 2 planes
In reply to Swati SharmaAdded test case to downscale 2 planes simultaneously. i915 driver supports max of 3:1 downscaling limit.
v2: -add check for min 2 scalers
-add igt_require() for overlay planes, fixes CRASH on KBL
v3: -test modified for n planes (Ville)
v4: -code optimization
v5: -limiting while loop (Ville)
v6: -rebase
-modified tests after rebase for consistency and more coverage
(Petri)
v7: -rename tests
-add 0.75 scaling factor test (Petri)
--- tests/kms_plane_scaling.c | 58 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 58 insertions(+)
tests/kms_plane_scaling.c +58 -0
@@ -30,6 +30,7 @@ IGT_TEST_DESCRIPTION("Test display plane scaling");enum scaler_combo_test_type {TEST_PLANES_UPSCALE =0 , +TEST_PLANES_DOWNSCALE , }; typedef struct {
@@ -343,6 +344,12 @@ __test_planes_scaling_combo(data_t *d, int w1, int h1, int w2, int h2,/* second plane upscaling */ igt_plane_set_size (p2, mode->hdisplay -20 , mode->vdisplay -20 ); } +if (test_type ==TEST_PLANES_DOWNSCALE ) { +/* first plane downscaling */ +igt_plane_set_size (p1, w1, h1); +/* second plane downscaling */ +igt_plane_set_size (p2, w2, h2); + } ret =igt_display_try_commit_atomic (display,DRM_MODE_ATOMIC_ALLOW_MODESET ,NULL );
@@ -370,15 +377,21 @@ test_planes_scaling_combo(data_t *d, int w1, int h1, int w2, int h2, enum scaler_combo_test_type test_type) {igt_display_t *display = &d->display; +drmModeModeInfo *mode;cleanup_crtc (d);igt_output_set_pipe (output, pipe); + mode =igt_output_get_mode (output);if (test_type ==TEST_PLANES_UPSCALE ) {setup_fb (display->drm_fd, w1, h1,1.0 ,0.0 ,0.0 , &d->fb[1 ]);setup_fb (display->drm_fd, w2, h2,0.0 ,1.0 ,0.0 , &d->fb[2 ]); } +if (test_type ==TEST_PLANES_DOWNSCALE ) { +setup_fb (display->drm_fd, mode->hdisplay, mode->vdisplay,1.0 ,0.0 ,0.0 , &d->fb[1 ]); +setup_fb (display->drm_fd, mode->hdisplay, mode->vdisplay,0.0 ,1.0 ,0.0 , &d->fb[2 ]); + }for (int k =0 ; k < display->pipes[pipe].n_planes; k++) {igt_plane_t *p1, *p2;
@@ -713,6 +726,51 @@ igt_main_args("", long_opts, help_str, opt_handler, &data) pipe, output, TEST_PLANES_UPSCALE); } } + +igt_describe ("Tests downscaling of 2 planes for 0.25 scaling factor." ); + igt_subtest_with_dynamic("planes-downscale-factor-0-25") { +for_each_pipe_with_single_output (&data.display, pipe, output) + igt_dynamic_f("pipe-%s-%s-planes-downscale", kmstest_pipe_name(pipe), igt_output_name(output)) { +drmModeModeInfo *mode; + + mode =igt_output_get_mode (output); + +test_planes_scaling_combo (&data, +0.25 * mode->hdisplay,0.25 * mode->vdisplay, +0.25 * mode->hdisplay,0.25 * mode->vdisplay, + pipe, output,TEST_PLANES_DOWNSCALE ); + } + } + +igt_describe ("Tests downscaling of 2 planes for 0.5 scaling factor." ); + igt_subtest_with_dynamic("planes-downscale-factor-0-5") { +for_each_pipe_with_single_output (&data.display, pipe, output) + igt_dynamic_f("pipe-%s-%s-planes-downscale", kmstest_pipe_name(pipe), igt_output_name(output)) { +drmModeModeInfo *mode; + + mode =igt_output_get_mode (output); + +test_planes_scaling_combo (&data, +0.5 * mode->hdisplay,0.5 * mode->vdisplay, +0.5 * mode->hdisplay,0.5 * mode->vdisplay, + pipe, output,TEST_PLANES_DOWNSCALE ); + } + } + +igt_describe ("Tests downscaling of 2 planes for 0.75 scaling factor." ); + igt_subtest_with_dynamic("planes-downscale-factor-0-75") { +for_each_pipe_with_single_output (&data.display, pipe, output) + igt_dynamic_f("pipe-%s-%s-planes-downscale", kmstest_pipe_name(pipe), igt_output_name(output)) { +drmModeModeInfo *mode; + + mode =igt_output_get_mode (output); + +test_planes_scaling_combo (&data, +0.75 * mode->hdisplay,0.75 * mode->vdisplay, +0.75 * mode->hdisplay,0.75 * mode->vdisplay, + pipe, output,TEST_PLANES_DOWNSCALE ); + } + } }igt_describe ("Tests scaling with multi-pipe scenario." );
Signature · 1 line
2.25.1
PATCH v8 7/8 tests/kms_plane_scaling: Upscaling and downscaling scenario
In reply to Swati SharmaUpscaling on first plane and downscaling on second plane.
v2: -add check for min 2 scalers
-add igt_require() for overlay planes, fixes CRASH on KBL
v3: -test modified for n planes (Ville)
v4: -code optimization
v5: -limiting while loop and few other changes based on prev. patches
v6: -rebase
-modified tests after rebase for consistency and more coverage (Petri)
v7: -rename tests
-added 0.75 scaling factor downscaling tests (Petri)
--- tests/kms_plane_scaling.c | 108 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 108 insertions(+)
tests/kms_plane_scaling.c +108 -0
@@ -31,6 +31,7 @@ IGT_TEST_DESCRIPTION("Test display plane scaling");enum scaler_combo_test_type {TEST_PLANES_UPSCALE =0 ,TEST_PLANES_DOWNSCALE , +TEST_PLANES_UPSCALE_DOWNSCALE }; typedef struct {
@@ -41,6 +42,84 @@ typedef struct {bool extended; } data_t; +const struct { +const char *const describe; +const char *const name; +const double sf_plane1; +const double sf_plane2; +} upscale_downscale_tests[] = { + { +"Tests upscaling (20x20) and downscaling (scaling factor 0.25) of 2 planes." , +"planes-upscale-20x20-downscale-factor-0-25" , +0.0 , +0.25 , + }, + { +"Tests upscaling (20x20) and downscaling (scaling factor 0.5) of 2 planes." , +"planes-upscale-20x20-downscale-factor-0-5" , +0.0 , +0.5 , + }, + { +"Tests upscaling (20x20) and downscaling (scaling factor 0.75) of 2 planes." , +"planes-upscale-20x20-downscale-factor-0-75" , +0.0 , +0.75 , + }, + { +"Tests upscaling (scaling factor 0.25) and downscaling (scaling factor 0.25) of 2 planes." , +"planes-upscale-factor-0-25-downscale-factor-0-25" , +0.25 , +0.25 , + }, + { +"Tests upscaling (scaling factor 0.25) and downscaling (scaling factor 0.5) of 2 planes." , +"planes-upscale-factor-0-25-downscale-factor-0-5" , +0.25 , +0.5 , + }, + { +"Tests upscaling (scaling factor 0.25) and downscaling (scaling factor 0.75) of 2 planes." , +"planes-upscale-factor-0-25-downscale-factor-0-75" , +0.25 , +0.75 , + }, + { +"Tests scaling (unity) and downscaling (scaling factor 0.25) of 2 planes." , +"planes-unity-scaling-downscale-factor-0-25" , +1.0 , +0.25 , + }, + { +"Tests scaling (unity) and downscaling (scaling factor 0.5) of 2 planes." , +"planes-unity-scaling-downscale-factor-0-5" , +1.0 , +0.5 , + }, + { +"Tests scaling (unity) and downscaling (scaling factor 0.75) of 2 planes." , +"planes-unity-scaling-downscale-factor-0-75" , +1.0 , +0.75 , + }, +}; + +static int get_width (drmModeModeInfo *mode,double scaling_factor) +{ +if (scaling_factor ==0.0 ) +return 20 ; +else +return mode->hdisplay * scaling_factor; +} + +static int get_height (drmModeModeInfo *mode,double scaling_factor) +{ +if (scaling_factor ==0.0 ) +return 20 ; +else +return mode->vdisplay * scaling_factor; +} +static void cleanup_fbs (data_t *data) {for (int i =0 ; i <ARRAY_SIZE (data->fb); i++)
@@ -350,6 +429,12 @@ __test_planes_scaling_combo(data_t *d, int w1, int h1, int w2, int h2,/* second plane downscaling */ igt_plane_set_size (p2, w2, h2); } +if (test_type ==TEST_PLANES_UPSCALE_DOWNSCALE ) { +/* first plane upscaling */ +igt_plane_set_size (p1, mode->hdisplay, mode->vdisplay); +/* second plane downscaling */ +igt_plane_set_size (p2, w2, h2); + } ret =igt_display_try_commit_atomic (display,DRM_MODE_ATOMIC_ALLOW_MODESET ,NULL );
@@ -392,6 +477,10 @@ test_planes_scaling_combo(data_t *d, int w1, int h1, int w2, int h2,setup_fb (display->drm_fd, mode->hdisplay, mode->vdisplay,1.0 ,0.0 ,0.0 , &d->fb[1 ]);setup_fb (display->drm_fd, mode->hdisplay, mode->vdisplay,0.0 ,1.0 ,0.0 , &d->fb[2 ]); } +if (test_type ==TEST_PLANES_UPSCALE_DOWNSCALE ) { +setup_fb (display->drm_fd, w1, h1,1.0 ,0.0 ,0.0 , &d->fb[1 ]); +setup_fb (display->drm_fd, mode->hdisplay, mode->vdisplay,0.0 ,1.0 ,0.0 , &d->fb[2 ]); + }for (int k =0 ; k < display->pipes[pipe].n_planes; k++) {igt_plane_t *p1, *p2;
@@ -771,6 +860,25 @@ igt_main_args("", long_opts, help_str, opt_handler, &data) pipe, output, TEST_PLANES_DOWNSCALE); } } + +for (int index =0 ; index <ARRAY_SIZE (upscale_downscale_tests); index++) { +igt_describe (upscale_downscale_tests[index].describe); + igt_subtest_with_dynamic(upscale_downscale_tests[index].name) { +for_each_pipe_with_single_output (&data.display, pipe, output) + igt_dynamic_f("pipe-%s-%s-planes-upscale-downscale", kmstest_pipe_name(pipe), igt_output_name(output)) { +drmModeModeInfo *mode; + + mode =igt_output_get_mode (output); + +test_planes_scaling_combo (&data, +get_width (mode, upscale_downscale_tests[index].sf_plane1), +get_height (mode, upscale_downscale_tests[index].sf_plane1), +get_width (mode, upscale_downscale_tests[index].sf_plane2), +get_height (mode,upscale_downscale_tests[index].sf_plane2), + pipe, output,TEST_PLANES_UPSCALE_DOWNSCALE ); + } + } + } }igt_describe ("Tests scaling with multi-pipe scenario." );
Signature · 1 line
2.25.1
PATCH v8 8/8 tests/kms_plane_scaling: Add negative test to check num of scalers
In reply to Swati SharmaTo validate i915 supports max of 2 scalers, applied upscaling on 3 planes simultaneously. This is a negative test and commit is expected to fail.
v2: -add check for min 2 scalers
-add igt_require() for overlay planes, fixes CRASH on KBL
v3: -rebase
--- tests/kms_plane_scaling.c | 70 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+)
tests/kms_plane_scaling.c +70 -0
@@ -503,6 +503,68 @@ test_planes_scaling_combo(data_t *d, int w1, int h1, int w2, int h2,igt_remove_fb (display->drm_fd, &d->fb[2 ]); } +static void +test_invalid_num_scalers (data_t *d,enum pipe pipe,igt_output_t *output) +{ +igt_display_t *display = &d->display; +igt_pipe_t *pipe_obj = &display->pipes[pipe]; +int width, height; +igt_plane_t *plane[3 ]; +drmModeModeInfo *mode; + +cleanup_crtc (d); + +igt_output_set_pipe (output, pipe); + + width = height =20 ; + mode =igt_output_get_mode (output); + + plane[0 ] =igt_pipe_get_plane_type_index (pipe_obj,DRM_PLANE_TYPE_OVERLAY ,0 ); +igt_require (plane[0 ]); + plane[1 ] =igt_pipe_get_plane_type_index (pipe_obj,DRM_PLANE_TYPE_OVERLAY ,1 ); +igt_require (plane[1 ]); + plane[2 ] =igt_pipe_get_plane_type_index (pipe_obj,DRM_PLANE_TYPE_OVERLAY ,2 ); +igt_require (plane[2 ]); + +igt_create_color_pattern_fb (display->drm_fd, + width, height, +DRM_FORMAT_XRGB8888 , +I915_TILING_NONE , +1.0 ,0.0 ,0.0 , &d->fb[0 ]); +igt_create_color_pattern_fb (display->drm_fd, + width, height, +DRM_FORMAT_XRGB8888 , +I915_TILING_NONE , +0.0 ,1.0 ,0.0 , &d->fb[1 ]); +igt_create_color_pattern_fb (display->drm_fd, + width, height, +DRM_FORMAT_XRGB8888 , +I915_TILING_NONE , +0.0 ,0.0 ,1.0 , &d->fb[2 ]); + +igt_plane_set_fb (plane[0 ], &d->fb[0 ]); +igt_plane_set_fb (plane[1 ], &d->fb[1 ]); +igt_plane_set_fb (plane[2 ], &d->fb[2 ]); + +igt_plane_set_size (plane[0 ], mode->hdisplay, mode->vdisplay); +igt_plane_set_size (plane[1 ], mode->hdisplay, mode->vdisplay); +igt_plane_set_size (plane[2 ], mode->hdisplay, mode->vdisplay); + +/* This commit is expected to fail. There is max 2 scalers/pipe. +* In dmesg we can find: +* Too many scaling requests 3 > 2 +* */ +igt_assert_eq (igt_display_try_commit_atomic (display,DRM_MODE_ATOMIC_ALLOW_MODESET ,NULL ), -EINVAL ); + +/* cleanup */ +igt_plane_set_fb (plane[0 ],NULL ); +igt_plane_set_fb (plane[1 ],NULL ); +igt_plane_set_fb (plane[2 ],NULL ); +igt_remove_fb (display->drm_fd, &d->fb[0 ]); +igt_remove_fb (display->drm_fd, &d->fb[1 ]); +igt_remove_fb (display->drm_fd, &d->fb[2 ]); +} +static void test_scaler_with_multi_pipe_plane (data_t *d) {igt_display_t *display = &d->display;
@@ -879,6 +941,14 @@ igt_main_args("", long_opts, help_str, opt_handler, &data) } } } + +igt_describe ("Negative test for number of scalers per pipe." ); + igt_subtest_with_dynamic("invalid-num-scalers") { +for_each_pipe_with_valid_output (&data.display, pipe, output) +igt_dynamic_f ("pipe-%s-%s-invalid-num-scalers" , + kmstest_pipe_name(pipe), igt_output_name(output)) +test_invalid_num_scalers (&data, pipe, output); + } }igt_describe ("Tests scaling with multi-pipe scenario." );
Signature · 1 line
2.25.1
Re: [igt-dev] [v8 8/8] tests/kms_plane_scaling: Add negative test to check num of scalers
Quoted 63 lines · Swati Sharma
To validate i915 supports max of 2 scalers, applied upscaling on 3 planes simultaneously. This is a negative test and commit is expected to fail.
v2: -add check for min 2 scalers
-addigt_require()for overlay planes, fixes CRASH on KBL
v3: -rebaseSigned-off-by Swati Sharma <[email protected]>--- tests/kms_plane_scaling.c | 70 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 70 insertions(+)tests/kms_plane_scaling.c +42
-0@@ -503,6 +503,68 @@ test_planes_scaling_combo(data_t *d, int w1, int h1, int w2, int h2,igt_remove_fb (display->drm_fd, &d->fb[2 ]); } +static void +test_invalid_num_scalers (data_t *d,enum pipe pipe,igt_output_t *output) +{ +igt_display_t *display = &d->display; +igt_pipe_t *pipe_obj = &display->pipes[pipe]; +int width, height; +igt_plane_t *plane[3 ]; +drmModeModeInfo *mode; + +cleanup_crtc (d); + +igt_output_set_pipe (output, pipe); + + width = height =20 ; + mode =igt_output_get_mode (output); + + plane[0 ] =igt_pipe_get_plane_type_index (pipe_obj,DRM_PLANE_TYPE_OVERLAY ,0 ); +igt_require (plane[0 ]); + plane[1 ] =igt_pipe_get_plane_type_index (pipe_obj,DRM_PLANE_TYPE_OVERLAY ,1 ); +igt_require (plane[1 ]); + plane[2 ] =igt_pipe_get_plane_type_index (pipe_obj,DRM_PLANE_TYPE_OVERLAY ,2 ); +igt_require (plane[2 ]); + +igt_create_color_pattern_fb (display->drm_fd, + width, height, +DRM_FORMAT_XRGB8888 , +I915_TILING_NONE , +1.0 ,0.0 ,0.0 , &d->fb[0 ]); +igt_create_color_pattern_fb (display->drm_fd, + width, height, +DRM_FORMAT_XRGB8888 , +I915_TILING_NONE , +0.0 ,1.0 ,0.0 , &d->fb[1 ]); +igt_create_color_pattern_fb (display->drm_fd, + width, height, +DRM_FORMAT_XRGB8888 , +I915_TILING_NONE , +0.0 ,0.0 ,1.0 , &d->fb[2 ]); + +igt_plane_set_fb (plane[0 ], &d->fb[0 ]); +igt_plane_set_fb (plane[1 ], &d->fb[1 ]); +igt_plane_set_fb (plane[2 ], &d->fb[2 ]);
tests/kms_plane_scaling.c test_planes_scaling_combo(data_t *d, int w1, int h1, int w2, int h2, · line 557
Quoted 10 lines
tests/kms_plane_scaling.c +10
-0+ +igt_plane_set_size (plane[0 ], mode->hdisplay, mode->vdisplay); +igt_plane_set_size (plane[1 ], mode->hdisplay, mode->vdisplay); +igt_plane_set_size (plane[2 ], mode->hdisplay, mode->vdisplay); + +/* This commit is expected to fail. There is max 2 scalers/pipe. +* In dmesg we can find: +* Too many scaling requests 3 > 2 +* */ +igt_assert_eq (igt_display_try_commit_atomic (display,DRM_MODE_ATOMIC_ALLOW_MODESET ,NULL ), -EINVAL );
For devices (non-i915, or possible future i915) that are able to perform this amount of scaling:
ret = igt_display_try_commit_atomic(....);igt_skip_on_f(ret == 0, "Cannot test handling of too many scaling ops, the device supports a large amount.\n"); igt_assert_eq(ret, -EINVAL);
Signature · 1 line
Petri Latvala
Quoted 31 lines
tests/kms_plane_scaling.c +18
-0+ +/* cleanup */ +igt_plane_set_fb (plane[0 ],NULL ); +igt_plane_set_fb (plane[1 ],NULL ); +igt_plane_set_fb (plane[2 ],NULL ); +igt_remove_fb (display->drm_fd, &d->fb[0 ]); +igt_remove_fb (display->drm_fd, &d->fb[1 ]); +igt_remove_fb (display->drm_fd, &d->fb[2 ]); +} +static void test_scaler_with_multi_pipe_plane (data_t *d) {igt_display_t *display = &d->display;@@ -879,6 +941,14 @@ igt_main_args("", long_opts, help_str, opt_handler, &data) } } } + +igt_describe ("Negative test for number of scalers per pipe." ); + igt_subtest_with_dynamic("invalid-num-scalers") { +for_each_pipe_with_valid_output (&data.display, pipe, output) +igt_dynamic_f ("pipe-%s-%s-invalid-num-scalers" , + kmstest_pipe_name(pipe), igt_output_name(output)) +test_invalid_num_scalers (&data, pipe, output); + } }igt_describe ("Tests scaling with multi-pipe scenario." );Signature · 1 line
2.25.1
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for Addition of new plane scaling test cases (rev10)
In reply to Swati Sharma== Series Details ==
== Series Details ==
Series: Addition of new plane scaling test cases (rev10)
URL : https://patchwork.freedesktop.org/series/98333/
State : success
== Summary ==
CI Bug Log - changes from CI_DRM_11291 -> IGTPW_6711
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6711/index.html
Participating hosts (41 -> 40)
------------------------------
Additional (2): bat-jsl-2 fi-pnv-d510
Missing (3): fi-bsw-cyan bat-rpls-2 shard-tglu
Known issues
------------
Here are the changes found in IGTPW_6711 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@amdgpu/amd_cs_nop@sync-fork-compute0:
- fi-snb-2600: NOTRUN -> [SKIP][1] ([fdo#109271]) +17 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6711/fi-snb-2600/igt@amdgpu/[email protected]
* igt@gem_exec_suspend@basic-s3:
- fi-skl-6600u: NOTRUN -> [FAIL][2] ([i915#4547])
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6711/fi-skl-6600u/igt@[email protected]
* igt@prime_vgem@basic-userptr:
- fi-pnv-d510: NOTRUN -> [SKIP][3] ([fdo#109271]) +57 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6711/fi-pnv-d510/igt@[email protected]
#### Possible fixes ####
* igt@i915_selftest@live@hangcheck:
- fi-snb-2600: [INCOMPLETE][4] ([i915#3921]) -> [PASS][5]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11291/fi-snb-2600/igt@i915_selftest@[email protected]
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6711/fi-snb-2600/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@perf:
- {fi-tgl-dsi}: [DMESG-WARN][6] ([i915#2867]) -> [PASS][7] +17 similar issues
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11291/fi-tgl-dsi/igt@i915_selftest@[email protected]
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6711/fi-tgl-dsi/igt@i915_selftest@[email protected]
* igt@kms_flip@basic-flip-vs-modeset@a-edp1:
- {bat-adlp-6}: [DMESG-WARN][8] ([i915#3576]) -> [PASS][9] +1 similar issue
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11291/bat-adlp-6/igt@kms_flip@[email protected]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6711/bat-adlp-6/igt@kms_flip@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[fdo#109271]: https://bugs.freedesktop.org/show_bug.cgi?id=109271
[fdo#109285]: https://bugs.freedesktop.org/show_bug.cgi?id=109285
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2867]: https://gitlab.freedesktop.org/drm/intel/issues/2867
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3576]: https://gitlab.freedesktop.org/drm/intel/issues/3576
[i915#3921]: https://gitlab.freedesktop.org/drm/intel/issues/3921
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4547]: https://gitlab.freedesktop.org/drm/intel/issues/4547
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#5127]: https://gitlab.freedesktop.org/drm/intel/issues/5127
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_6359 -> IGTPW_6711
CI-20190529: 20190529
CI_DRM_11291: 1e3f898ee67cb2fd8c58799ae8a094f73054c8b9 @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_6711: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6711/index.html
IGT_6359: 57049558c452272b27eeb099fac07e55a924bbf9 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
== Testlist changes ==
+igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-5 +igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25 +igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-75 +igt@kms_plane_scaling@downscale-with-rotation-factor-0-5 +igt@kms_plane_scaling@downscale-with-rotation-factor-0-25 +igt@kms_plane_scaling@downscale-with-rotation-factor-0-75 +igt@kms_plane_scaling@invalid-num-scalers +igt@kms_plane_scaling@planes-downscale-factor-0-5 +igt@kms_plane_scaling@planes-downscale-factor-0-25 +igt@kms_plane_scaling@planes-downscale-factor-0-75 +igt@kms_plane_scaling@planes-scaling-unity-scaling +igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-5 +igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25 +igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-75 +igt@kms_plane_scaling@planes-upscale-20x20 +igt@kms_plane_scaling@planes-upscale-20x20-downscale-factor-0-5 +igt@kms_plane_scaling@planes-upscale-20x20-downscale-factor-0-25 +igt@kms_plane_scaling@planes-upscale-20x20-downscale-factor-0-75 +igt@kms_plane_scaling@planes-upscale-factor-0-25 +igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-5 +igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-25 +igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-75 +igt@kms_plane_scaling@upscale-with-pixel-format-factor-0-25 +igt@kms_plane_scaling@upscale-with-rotation-factor-0-25 -igt@kms_plane_scaling@downscale-with-pixel-format-factor-2 -igt@kms_plane_scaling@downscale-with-pixel-format-factor-4 -igt@kms_plane_scaling@downscale-with-rotation-factor-2 -igt@kms_plane_scaling@downscale-with-rotation-factor-4 -igt@kms_plane_scaling@plane-scaling -igt@kms_plane_scaling@upscale-with-pixel-format-factor-4 -igt@kms_plane_scaling@upscale-with-rotation-factor-4
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6711/index.html
Patchwork
CI[igt-dev] ✗ Fi.CI.IGT: failure for Addition of new plane scaling test cases (rev10)
In reply to Swati Sharma== Series Details ==
== Series Details ==
Series: Addition of new plane scaling test cases (rev10)
URL : https://patchwork.freedesktop.org/series/98333/
State : failure
== Summary ==
CI Bug Log - changes from CI_DRM_11291_full -> IGTPW_6711_full
====================================================
Summary
-------
**FAILURE**
Serious unknown changes coming with IGTPW_6711_full absolutely need to be verified manually.
If you think the reported changes have nothing to do with the changes introduced in IGTPW_6711_full, please notify your bug team to allow them to document this new failure mode, which will reduce false positives in CI.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6711/index.html
Participating hosts (11 -> 8)
------------------------------
Missing (3): pig-skl-6260u pig-kbl-iris pig-glk-j5005
Possible new issues
-------------------
Here are the unknown changes that may have been introduced in IGTPW_6711_full:
### IGT changes ###
#### Possible regressions ####
* igt@kms_cursor_legacy@flip-vs-cursor-crc-atomic:
- shard-glk: [PASS][1] -> [FAIL][2]
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/CI_DRM_11291/shard-glk6/igt@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6711/shard-glk7/igt@[email protected]
* {igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-a-edp-1-downscale-with-pixel-format} (NEW):
- shard-iclb: NOTRUN -> [SKIP][3] +29 similar issues
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6711/shard-iclb7/igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-a-edp-1-downscale-with-pixel-format.html
* {igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-d-edp-1-planes-upscale-downscale} (NEW):
- shard-tglb: NOTRUN -> [SKIP][4] +39 similar issues
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6711/shard-tglb5/igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-d-edp-1-planes-upscale-downscale.html
* {igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-25@pipe-d-hdmi-a-1-planes-upscale-downscale} (NEW):
- {shard-tglu}: NOTRUN -> [SKIP][5] +35 similar issues
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6711/shard-tglu-3/igt@kms_plane_scaling@planes-upscale-factor-0-25-downscale-factor-0-25@pipe-d-hdmi-a-1-planes-upscale-downscale.html
New tests
---------
New tests have been introduced between CI_DRM_11291_full and IGTPW_6711_full:
### New IGT tests (385) ###
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25:
- Statuses :
- Exec time: [None] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-a-dp-1-downscale-with-pixel-format:
- Statuses : 2 skip(s)
- Exec time: [0.02, 0.03] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-a-edp-1-downscale-with-pixel-format:
- Statuses : 2 skip(s)
- Exec time: [0.01] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-a-hdmi-a-1-downscale-with-pixel-format:
- Statuses : 2 skip(s)
- Exec time: [0.01, 0.07] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-a-vga-1-downscale-with-pixel-format:
- Statuses : 1 skip(s)
- Exec time: [0.01] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-b-dp-1-downscale-with-pixel-format:
- Statuses : 2 skip(s)
- Exec time: [0.03, 0.06] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-b-edp-1-downscale-with-pixel-format:
- Statuses : 2 skip(s)
- Exec time: [0.02] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-b-hdmi-a-1-downscale-with-pixel-format:
- Statuses : 1 skip(s)
- Exec time: [0.02] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-b-hdmi-a-2-downscale-with-pixel-format:
- Statuses : 1 skip(s)
- Exec time: [0.06] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-b-vga-1-downscale-with-pixel-format:
- Statuses : 1 skip(s)
- Exec time: [0.02] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-c-dp-1-downscale-with-pixel-format:
- Statuses : 2 skip(s)
- Exec time: [0.03, 0.06] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-c-edp-1-downscale-with-pixel-format:
- Statuses : 2 skip(s)
- Exec time: [0.02] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-c-hdmi-a-1-downscale-with-pixel-format:
- Statuses : 2 skip(s)
- Exec time: [0.02, 0.09] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-d-edp-1-downscale-with-pixel-format:
- Statuses : 1 skip(s)
- Exec time: [0.02] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-25@pipe-d-hdmi-a-1-downscale-with-pixel-format:
- Statuses : 1 skip(s)
- Exec time: [0.02] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-5:
- Statuses :
- Exec time: [None] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-5@pipe-a-dp-1-downscale-with-pixel-format:
- Statuses : 1 pass(s) 1 skip(s)
- Exec time: [0.53, 10.57] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-5@pipe-a-edp-1-downscale-with-pixel-format:
- Statuses : 2 pass(s)
- Exec time: [29.69, 31.95] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-5@pipe-a-hdmi-a-1-downscale-with-pixel-format:
- Statuses : 1 pass(s)
- Exec time: [13.12] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-5@pipe-a-vga-1-downscale-with-pixel-format:
- Statuses : 1 skip(s)
- Exec time: [0.02] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-5@pipe-b-dp-1-downscale-with-pixel-format:
- Statuses : 1 pass(s) 1 skip(s)
- Exec time: [0.50, 10.10] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-5@pipe-b-edp-1-downscale-with-pixel-format:
- Statuses : 2 pass(s)
- Exec time: [29.40, 32.90] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-5@pipe-b-hdmi-a-2-downscale-with-pixel-format:
- Statuses : 1 pass(s)
- Exec time: [13.18] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-5@pipe-b-vga-1-downscale-with-pixel-format:
- Statuses : 1 skip(s)
- Exec time: [0.02] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-5@pipe-c-dp-1-downscale-with-pixel-format:
- Statuses : 2 pass(s)
- Exec time: [0.31, 0.60] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-5@pipe-c-edp-1-downscale-with-pixel-format:
- Statuses : 2 pass(s)
- Exec time: [1.48, 1.63] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-5@pipe-c-hdmi-a-1-downscale-with-pixel-format:
- Statuses : 1 pass(s)
- Exec time: [0.80] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-5@pipe-d-edp-1-downscale-with-pixel-format:
- Statuses : 1 pass(s)
- Exec time: [1.47] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-75:
- Statuses :
- Exec time: [None] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-75@pipe-a-dp-1-downscale-with-pixel-format:
- Statuses : 1 pass(s)
- Exec time: [9.82] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-75@pipe-a-edp-1-downscale-with-pixel-format:
- Statuses : 2 pass(s)
- Exec time: [29.14, 32.01] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-75@pipe-a-hdmi-a-1-downscale-with-pixel-format:
- Statuses : 2 pass(s)
- Exec time: [13.26, 22.75] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-75@pipe-a-vga-1-downscale-with-pixel-format:
- Statuses : 1 skip(s)
- Exec time: [0.01] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-75@pipe-b-dp-1-downscale-with-pixel-format:
- Statuses : 1 pass(s)
- Exec time: [10.04] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-75@pipe-b-edp-1-downscale-with-pixel-format:
- Statuses : 2 pass(s)
- Exec time: [30.14, 32.69] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-75@pipe-b-hdmi-a-1-downscale-with-pixel-format:
- Statuses : 1 pass(s)
- Exec time: [22.85] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-75@pipe-b-hdmi-a-2-downscale-with-pixel-format:
- Statuses : 1 pass(s)
- Exec time: [13.13] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-75@pipe-b-vga-1-downscale-with-pixel-format:
- Statuses : 1 skip(s)
- Exec time: [0.02] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-75@pipe-c-dp-1-downscale-with-pixel-format:
- Statuses : 1 pass(s)
- Exec time: [0.59] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-75@pipe-c-edp-1-downscale-with-pixel-format:
- Statuses : 2 pass(s)
- Exec time: [1.47, 1.63] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-75@pipe-c-hdmi-a-1-downscale-with-pixel-format:
- Statuses : 2 pass(s)
- Exec time: [0.27, 0.86] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-75@pipe-d-edp-1-downscale-with-pixel-format:
- Statuses : 1 pass(s)
- Exec time: [1.48] s
* igt@kms_plane_scaling@downscale-with-pixel-format-factor-0-75@pipe-d-hdmi-a-1-downscale-with-pixel-format:
- Statuses : 1 pass(s)
- Exec time: [0.30] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-25:
- Statuses :
- Exec time: [None] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-25@pipe-a-dp-1-downscale-with-rotation:
- Statuses : 2 skip(s)
- Exec time: [0.02, 0.04] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-25@pipe-a-edp-1-downscale-with-rotation:
- Statuses : 2 skip(s)
- Exec time: [0.01] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-25@pipe-a-hdmi-a-1-downscale-with-rotation:
- Statuses : 1 skip(s)
- Exec time: [0.08] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-25@pipe-a-vga-1-downscale-with-rotation:
- Statuses : 1 skip(s)
- Exec time: [0.01] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-25@pipe-b-dp-1-downscale-with-rotation:
- Statuses : 2 skip(s)
- Exec time: [0.03, 0.07] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-25@pipe-b-edp-1-downscale-with-rotation:
- Statuses : 2 skip(s)
- Exec time: [0.02] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-25@pipe-b-hdmi-a-2-downscale-with-rotation:
- Statuses : 1 skip(s)
- Exec time: [0.06] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-25@pipe-b-vga-1-downscale-with-rotation:
- Statuses : 1 skip(s)
- Exec time: [0.02] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-25@pipe-c-dp-1-downscale-with-rotation:
- Statuses : 2 pass(s)
- Exec time: [0.00] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-25@pipe-c-edp-1-downscale-with-rotation:
- Statuses : 2 skip(s)
- Exec time: [0.02] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-25@pipe-c-hdmi-a-1-downscale-with-rotation:
- Statuses : 1 pass(s)
- Exec time: [0.01] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-25@pipe-d-edp-1-downscale-with-rotation:
- Statuses : 1 skip(s)
- Exec time: [0.02] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-5:
- Statuses :
- Exec time: [None] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-5@pipe-a-dp-1-downscale-with-rotation:
- Statuses : 2 skip(s)
- Exec time: [0.46, 0.91] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-5@pipe-a-edp-1-downscale-with-rotation:
- Statuses : 2 skip(s)
- Exec time: [2.19, 2.65] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-5@pipe-a-hdmi-a-1-downscale-with-rotation:
- Statuses : 2 skip(s)
- Exec time: [0.78, 1.01] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-5@pipe-a-vga-1-downscale-with-rotation:
- Statuses : 1 skip(s)
- Exec time: [0.02] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-5@pipe-b-dp-1-downscale-with-rotation:
- Statuses : 2 skip(s)
- Exec time: [0.46, 0.89] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-5@pipe-b-edp-1-downscale-with-rotation:
- Statuses : 2 skip(s)
- Exec time: [2.10, 2.56] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-5@pipe-b-hdmi-a-1-downscale-with-rotation:
- Statuses : 1 skip(s)
- Exec time: [0.72] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-5@pipe-b-hdmi-a-2-downscale-with-rotation:
- Statuses : 1 skip(s)
- Exec time: [1.02] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-5@pipe-b-vga-1-downscale-with-rotation:
- Statuses : 1 skip(s)
- Exec time: [0.02] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-5@pipe-c-dp-1-downscale-with-rotation:
- Statuses : 2 pass(s)
- Exec time: [0.00] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-5@pipe-c-edp-1-downscale-with-rotation:
- Statuses : 2 skip(s)
- Exec time: [1.19, 1.21] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-5@pipe-c-hdmi-a-1-downscale-with-rotation:
- Statuses : 1 pass(s) 1 skip(s)
- Exec time: [0.01, 0.07] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-5@pipe-d-edp-1-downscale-with-rotation:
- Statuses : 1 skip(s)
- Exec time: [1.15] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-5@pipe-d-hdmi-a-1-downscale-with-rotation:
- Statuses : 1 skip(s)
- Exec time: [0.06] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-75:
- Statuses :
- Exec time: [None] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-75@pipe-a-dp-1-downscale-with-rotation:
- Statuses : 2 skip(s)
- Exec time: [0.41, 0.71] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-75@pipe-a-edp-1-downscale-with-rotation:
- Statuses : 2 skip(s)
- Exec time: [0.95, 1.03] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-75@pipe-a-hdmi-a-1-downscale-with-rotation:
- Statuses : 2 skip(s)
- Exec time: [0.74, 1.04] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-75@pipe-a-vga-1-downscale-with-rotation:
- Statuses : 1 skip(s)
- Exec time: [0.01] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-75@pipe-b-dp-1-downscale-with-rotation:
- Statuses : 2 skip(s)
- Exec time: [0.57, 0.89] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-75@pipe-b-edp-1-downscale-with-rotation:
- Statuses : 2 skip(s)
- Exec time: [2.00, 2.08] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-75@pipe-b-hdmi-a-1-downscale-with-rotation:
- Statuses : 1 skip(s)
- Exec time: [0.72] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-75@pipe-b-hdmi-a-2-downscale-with-rotation:
- Statuses : 1 skip(s)
- Exec time: [1.05] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-75@pipe-b-vga-1-downscale-with-rotation:
- Statuses : 1 skip(s)
- Exec time: [0.03] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-75@pipe-c-dp-1-downscale-with-rotation:
- Statuses : 2 pass(s)
- Exec time: [0.00] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-75@pipe-c-edp-1-downscale-with-rotation:
- Statuses : 2 skip(s)
- Exec time: [1.16, 1.20] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-75@pipe-c-hdmi-a-1-downscale-with-rotation:
- Statuses : 1 pass(s) 1 skip(s)
- Exec time: [0.01, 0.07] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-75@pipe-d-edp-1-downscale-with-rotation:
- Statuses : 1 skip(s)
- Exec time: [1.15] s
* igt@kms_plane_scaling@downscale-with-rotation-factor-0-75@pipe-d-hdmi-a-1-downscale-with-rotation:
- Statuses : 1 skip(s)
- Exec time: [0.05] s
* igt@kms_plane_scaling@invalid-num-scalers:
- Statuses :
- Exec time: [None] s
* igt@kms_plane_scaling@invalid-num-scalers@pipe-a-dp-1-invalid-num-scalers:
- Statuses : 2 skip(s)
- Exec time: [0.00] s
* igt@kms_plane_scaling@invalid-num-scalers@pipe-a-edp-1-invalid-num-scalers:
- Statuses : 2 pass(s)
- Exec time: [0.03, 0.04] s
* igt@kms_plane_scaling@invalid-num-scalers@pipe-a-hdmi-a-1-invalid-num-scalers:
- Statuses : 2 pass(s)
- Exec time: [0.02, 0.17] s
* igt@kms_plane_scaling@invalid-num-scalers@pipe-a-hdmi-a-2-invalid-num-scalers:
- Statuses : 1 pass(s)
- Exec time: [0.10] s
* igt@kms_plane_scaling@invalid-num-scalers@pipe-a-vga-1-invalid-num-scalers:
- Statuses : 1 skip(s)
- Exec time: [0.0] s
* igt@kms_plane_scaling@invalid-num-scalers@pipe-b-dp-1-invalid-num-scalers:
- Statuses : 2 skip(s)
- Exec time: [0.00] s
* igt@kms_plane_scaling@invalid-num-scalers@pipe-b-edp-1-invalid-num-scalers:
- Statuses : 2 pass(s)
- Exec time: [0.02] s
* igt@kms_plane_scaling@invalid-num-scalers@pipe-b-hdmi-a-1-invalid-num-scalers:
- Statuses : 2 pass(s)
- Exec time: [0.02, 0.10] s
* igt@kms_plane_scaling@invalid-num-scalers@pipe-b-hdmi-a-2-invalid-num-scalers:
- Statuses : 1 pass(s)
- Exec time: [0.10] s
* igt@kms_plane_scaling@invalid-num-scalers@pipe-b-vga-1-invalid-num-scalers:
- Statuses : 1 skip(s)
- Exec time: [0.0] s
* igt@kms_plane_scaling@invalid-num-scalers@pipe-c-dp-1-invalid-num-scalers:
- Statuses : 2 skip(s)
- Exec time: [0.00] s
* igt@kms_plane_scaling@invalid-num-scalers@pipe-c-edp-1-invalid-num-scalers:
- Statuses : 2 pass(s)
- Exec time: [0.02] s
* igt@kms_plane_scaling@invalid-num-scalers@pipe-c-hdmi-a-1-invalid-num-scalers:
- Statuses : 2 pass(s)
- Exec time: [0.02, 0.15] s
* igt@kms_plane_scaling@invalid-num-scalers@pipe-c-hdmi-a-2-invalid-num-scalers:
- Statuses : 1 pass(s)
- Exec time: [0.15] s
* igt@kms_plane_scaling@invalid-num-scalers@pipe-d-edp-1-invalid-num-scalers:
- Statuses : 1 pass(s)
- Exec time: [0.02] s
* igt@kms_plane_scaling@invalid-num-scalers@pipe-d-hdmi-a-1-invalid-num-scalers:
- Statuses : 1 pass(s)
- Exec time: [0.02] s
* igt@kms_plane_scaling@planes-downscale-factor-0-25:
- Statuses :
- Exec time: [None] s
* igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-a-dp-1-planes-downscale:
- Statuses : 2 skip(s)
- Exec time: [0.06, 0.17] s
* igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-a-edp-1-planes-downscale:
- Statuses : 2 skip(s)
- Exec time: [0.05, 0.06] s
* igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-a-hdmi-a-1-planes-downscale:
- Statuses : 2 skip(s)
- Exec time: [0.03, 0.17] s
* igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-a-vga-1-planes-downscale:
- Statuses : 1 skip(s)
- Exec time: [0.05] s
* igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-b-dp-1-planes-downscale:
- Statuses : 2 skip(s)
- Exec time: [0.05, 0.13] s
* igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-b-edp-1-planes-downscale:
- Statuses : 2 skip(s)
- Exec time: [0.04] s
* igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-b-hdmi-a-1-planes-downscale:
- Statuses : 1 skip(s)
- Exec time: [0.04] s
* igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-b-hdmi-a-2-planes-downscale:
- Statuses : 1 skip(s)
- Exec time: [0.11] s
* igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-b-vga-1-planes-downscale:
- Statuses : 1 skip(s)
- Exec time: [0.03] s
* igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-c-dp-1-planes-downscale:
- Statuses : 2 skip(s)
- Exec time: [0.05, 0.13] s
* igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-c-edp-1-planes-downscale:
- Statuses : 2 skip(s)
- Exec time: [0.04] s
* igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-c-hdmi-a-1-planes-downscale:
- Statuses : 2 skip(s)
- Exec time: [0.04, 0.15] s
* igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-d-edp-1-planes-downscale:
- Statuses : 1 skip(s)
- Exec time: [0.03] s
* igt@kms_plane_scaling@planes-downscale-factor-0-25@pipe-d-hdmi-a-1-planes-downscale:
- Statuses : 1 skip(s)
- Exec time: [0.04] s
* igt@kms_plane_scaling@planes-downscale-factor-0-5:
- Statuses :
- Exec time: [None] s
* igt@kms_plane_scaling@planes-downscale-factor-0-5@pipe-a-dp-1-planes-downscale:
- Statuses : 1 pass(s)
- Exec time: [0.38] s
* igt@kms_plane_scaling@planes-downscale-factor-0-5@pipe-a-edp-1-planes-downscale:
- Statuses : 2 pass(s)
- Exec time: [1.31, 1.34] s
* igt@kms_plane_scaling@planes-downscale-factor-0-5@pipe-a-hdmi-a-1-planes-downscale:
- Statuses : 1 pass(s)
- Exec time: [0.36] s
* igt@kms_plane_scaling@planes-downscale-factor-0-5@pipe-a-vga-1-planes-downscale:
- Statuses : 1 skip(s)
- Exec time: [0.06] s
* igt@kms_plane_scaling@planes-downscale-factor-0-5@pipe-b-dp-1-planes-downscale:
- Statuses : 1 pass(s)
- Exec time: [0.33] s
* igt@kms_plane_scaling@planes-downscale-factor-0-5@pipe-b-edp-1-planes-downscale:
- Statuses : 2 pass(s)
- Exec time: [1.27, 1.32] s
* igt@kms_plane_scaling@planes-downscale-factor-0-5@pipe-b-hdmi-a-2-planes-downscale:
- Statuses : 1 pass(s)
- Exec time: [0.35] s
* igt@kms_plane_scaling@planes-downscale-factor-0-5@pipe-b-vga-1-planes-downscale:
- Statuses : 1 skip(s)
- Exec time: [0.03] s
* igt@kms_plane_scaling@planes-downscale-factor-0-5@pipe-c-dp-1-planes-downscale:
- Statuses : 1 skip(s)
- Exec time: [0.13] s
* igt@kms_plane_scaling@planes-downscale-factor-0-5@pipe-c-edp-1-planes-downscale:
- Statuses : 2 pass(s)
- Exec time: [1.27, 1.34] s
* igt@kms_plane_scaling@planes-downscale-factor-0-5@pipe-c-hdmi-a-1-planes-downscale:
- Statuses : 1 skip(s)
- Exec time: [0.14] s
* igt@kms_plane_scaling@planes-downscale-factor-0-5@pipe-d-edp-1-planes-downscale:
- Statuses : 1 pass(s)
- Exec time: [1.22] s
* igt@kms_plane_scaling@planes-downscale-factor-0-75:
- Statuses :
- Exec time: [None] s
* igt@kms_plane_scaling@planes-downscale-factor-0-75@pipe-a-dp-1-planes-downscale:
- Statuses : 2 pass(s)
- Exec time: [0.10, 0.24] s
* igt@kms_plane_scaling@planes-downscale-factor-0-75@pipe-a-edp-1-planes-downscale:
- Statuses : 2 pass(s)
- Exec time: [0.15, 0.19] s
* igt@kms_plane_scaling@planes-downscale-factor-0-75@pipe-a-hdmi-a-1-planes-downscale:
- Statuses : 2 pass(s)
- Exec time: [0.11, 0.38] s
* igt@kms_plane_scaling@planes-downscale-factor-0-75@pipe-a-vga-1-planes-downscale:
- Statuses : 1 skip(s)
- Exec time: [0.05] s
* igt@kms_plane_scaling@planes-downscale-factor-0-75@pipe-b-dp-1-planes-downscale:
- Statuses : 2 pass(s)
- Exec time: [0.22, 0.33] s
* igt@kms_plane_scaling@planes-downscale-factor-0-75@pipe-b-edp-1-planes-downscale:
- Statuses : 2 pass(s)
- Exec time: [1.26, 1.35] s
* igt@kms_plane_scaling@planes-downscale-factor-0-75@pipe-b-hdmi-a-1-planes-downscale:
- Statuses : 1 pass(s)
- Exec time: [0.15] s
* igt@kms_plane_scaling@planes-downscale-factor-0-75@pipe-b-hdmi-a-2-planes-downscale:
- Statuses : 1 pass(s)
- Exec time: [0.32] s
* igt@kms_plane_scaling@planes-downscale-factor-0-75@pipe-b-vga-1-planes-downscale:
- Statuses : 1 skip(s)
- Exec time: [0.03] s
* igt@kms_plane_scaling@planes-downscale-factor-0-75@pipe-c-dp-1-planes-downscale:
- Statuses : 2 skip(s)
- Exec time: [0.05, 0.13] s
* igt@kms_plane_scaling@planes-downscale-factor-0-75@pipe-c-edp-1-planes-downscale:
- Statuses : 2 pass(s)
- Exec time: [1.22, 1.34] s
* igt@kms_plane_scaling@planes-downscale-factor-0-75@pipe-c-hdmi-a-1-planes-downscale:
- Statuses : 1 pass(s) 1 skip(s)
- Exec time: [0.11, 0.16] s
* igt@kms_plane_scaling@planes-downscale-factor-0-75@pipe-d-edp-1-planes-downscale:
- Statuses : 1 pass(s)
- Exec time: [1.22] s
* igt@kms_plane_scaling@planes-downscale-factor-0-75@pipe-d-hdmi-a-1-planes-downscale:
- Statuses : 1 pass(s)
- Exec time: [0.12] s
* igt@kms_plane_scaling@planes-scaling-unity-scaling:
- Statuses :
- Exec time: [None] s
* igt@kms_plane_scaling@planes-scaling-unity-scaling@pipe-a-dp-1-planes-unity-scaling:
- Statuses : 2 pass(s)
- Exec time: [0.09, 0.22] s
* igt@kms_plane_scaling@planes-scaling-unity-scaling@pipe-a-edp-1-planes-unity-scaling:
- Statuses : 2 pass(s)
- Exec time: [0.19] s
* igt@kms_plane_scaling@planes-scaling-unity-scaling@pipe-a-hdmi-a-1-planes-unity-scaling:
- Statuses : 2 pass(s)
- Exec time: [0.10, 0.35] s
* igt@kms_plane_scaling@planes-scaling-unity-scaling@pipe-a-vga-1-planes-unity-scaling:
- Statuses : 1 pass(s)
- Exec time: [0.10] s
* igt@kms_plane_scaling@planes-scaling-unity-scaling@pipe-b-dp-1-planes-unity-scaling:
- Statuses : 2 pass(s)
- Exec time: [0.22, 0.32] s
* igt@kms_plane_scaling@planes-scaling-unity-scaling@pipe-b-edp-1-planes-unity-scaling:
- Statuses : 2 pass(s)
- Exec time: [1.28, 1.32] s
* igt@kms_plane_scaling@planes-scaling-unity-scaling@pipe-b-hdmi-a-1-planes-unity-scaling:
- Statuses : 1 pass(s)
- Exec time: [0.12] s
* igt@kms_plane_scaling@planes-scaling-unity-scaling@pipe-b-hdmi-a-2-planes-unity-scaling:
- Statuses : 1 pass(s)
- Exec time: [0.33] s
* igt@kms_plane_scaling@planes-scaling-unity-scaling@pipe-b-vga-1-planes-unity-scaling:
- Statuses : 1 pass(s)
- Exec time: [0.14] s
* igt@kms_plane_scaling@planes-scaling-unity-scaling@pipe-c-dp-1-planes-unity-scaling:
- Statuses : 2 pass(s)
- Exec time: [0.22, 0.31] s
* igt@kms_plane_scaling@planes-scaling-unity-scaling@pipe-c-edp-1-planes-unity-scaling:
- Statuses : 2 pass(s)
- Exec time: [1.28, 1.34] s
* igt@kms_plane_scaling@planes-scaling-unity-scaling@pipe-c-hdmi-a-1-planes-unity-scaling:
- Statuses : 2 pass(s)
- Exec time: [0.12, 0.33] s
* igt@kms_plane_scaling@planes-scaling-unity-scaling@pipe-d-edp-1-planes-unity-scaling:
- Statuses : 1 pass(s)
- Exec time: [1.28] s
* igt@kms_plane_scaling@planes-scaling-unity-scaling@pipe-d-hdmi-a-1-planes-unity-scaling:
- Statuses : 1 pass(s)
- Exec time: [0.12] s
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25:
- Statuses :
- Exec time: [None] s
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-a-dp-1-planes-upscale-downscale:
- Statuses : 2 skip(s)
- Exec time: [0.06, 0.17] s
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-a-edp-1-planes-upscale-downscale:
- Statuses : 2 skip(s)
- Exec time: [0.05] s
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-a-hdmi-a-1-planes-upscale-downscale:
- Statuses : 2 skip(s)
- Exec time: [0.04, 0.18] s
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-a-vga-1-planes-upscale-downscale:
- Statuses : 1 pass(s)
- Exec time: [0.11] s
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-b-dp-1-planes-upscale-downscale:
- Statuses : 2 skip(s)
- Exec time: [0.05, 0.12] s
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-b-edp-1-planes-upscale-downscale:
- Statuses : 2 skip(s)
- Exec time: [0.04] s
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-b-hdmi-a-1-planes-upscale-downscale:
- Statuses : 1 skip(s)
- Exec time: [0.03] s
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-b-hdmi-a-2-planes-upscale-downscale:
- Statuses : 1 skip(s)
- Exec time: [0.12] s
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-b-vga-1-planes-upscale-downscale:
- Statuses : 1 pass(s)
- Exec time: [0.14] s
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-c-dp-1-planes-upscale-downscale:
- Statuses : 2 skip(s)
- Exec time: [0.05, 0.13] s
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-c-edp-1-planes-upscale-downscale:
- Statuses : 2 skip(s)
- Exec time: [0.03, 0.04] s
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-c-hdmi-a-1-planes-upscale-downscale:
- Statuses : 2 skip(s)
- Exec time: [0.06, 0.18] s
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-d-edp-1-planes-upscale-downscale:
- Statuses : 1 skip(s)
- Exec time: [0.04] s
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-25@pipe-d-hdmi-a-1-planes-upscale-downscale:
- Statuses : 1 skip(s)
- Exec time: [0.03] s
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-5:
- Statuses :
- Exec time: [None] s
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-5@pipe-a-dp-1-planes-upscale-downscale:
- Statuses : 2 pass(s)
- Exec time: [0.24, 0.39] s
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-5@pipe-a-edp-1-planes-upscale-downscale:
- Statuses : 2 pass(s)
- Exec time: [1.31, 1.34] s
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-5@pipe-a-hdmi-a-1-planes-upscale-downscale:
- Statuses : 1 pass(s)
- Exec time: [0.40] s
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-5@pipe-a-vga-1-planes-upscale-downscale:
- Statuses : 1 pass(s)
- Exec time: [0.11] s
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-5@pipe-b-dp-1-planes-upscale-downscale:
- Statuses : 2 pass(s)
- Exec time: [0.24, 0.33] s
* igt@kms_plane_scaling@planes-unity-scaling-downscale-factor-0-5@pipe-b-edp-1-planes-upscale-downscale:
- Statuses : 2 pass(s)
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_6711/index.html
Quoted 32 lines · Swati Sharma
In this series, combination of downscaling and upscaling testcases are added. Also, code refactoring is done for existing code.
v2:-minor fixes, to prevent CI crashes v3:-added subtests for testing upscaling/downscaling for
each plane individually (Ville)
-modified existing subtests for each N plane scaling
combo (Ville)
v4:-removal of i915sm (Ville)
-code reusablity (Ville)
v5:-use enum (Viile)
-limit while loop (Ville)
-add assert for fail/pass (Ville)
-added primary plane for testing (Ville)
v6:-after rebase, made changes accordingly to make
test cases consistent and for better coverage (Petri)
v7:-renaming of existing tests
-added 0.75 scaling factor downscaling tests (Petrii)
v8:-code cleanupSwati Sharma (8):
tests/kms_plane_scaling: Removal of plane-scaling subtest tests/kms_plane_scaling: Cleanup
tests/kms_plane_scaling: Minor changes with existing tests tests/kms_plane_scaling: Addition of 0.75 scaling factor downscaling
tests
tests/kms_plane_scaling: Upscaling on 2 planes tests/kms_plane_scaling: Downscaling on 2 planes tests/kms_plane_scaling: Upscaling and downscaling scenario tests/kms_plane_scaling: Add negative test to check num of scalers
Quoted 2 lines
tests/kms_plane_scaling.c | 866 ++++++++++++++++++++------------------ 1 file changed, 468 insertions(+), 398 deletions(-)
One comment on patch 8, with that addressed the series is