tests/kms: Cleanup to use linear modifier and cairo ctx
PATCH 1/1 tests/kms: Cleanup to use linear modifier and cairo ctx
While creating the framebuffer use the default modifier as DRM_FORMAT_MOD_LINEAR instead of using deprecated modifiers, magic numbers, no_tiling modifier etc..
This patch will also nullify each igt_get_cairo_ctx() call with igt_put_cairo_ctx().
--- tests/i915/kms_ccs.c | 4 +--- tests/i915/kms_cdclk.c | 4 ++-- tests/i915/kms_pipe_b_c_ivb.c | 2 +- tests/i915/kms_psr_stress_test.c | 2 +- tests/kms_addfb_basic.c | 22 +++++++++---------- tests/kms_async_flips.c | 4 ++++ tests/kms_atomic.c | 24 ++++++++++----------- tests/kms_atomic_transition.c | 4 ++-- tests/kms_bw.c | 2 +- tests/kms_cursor_legacy.c | 36 ++++++++++++++++++++----------- tests/kms_display_modes.c | 7 +++--- tests/kms_force_connector_basic.c | 4 ++-- tests/kms_getfb.c | 8 +++---- tests/kms_hdr.c | 9 +++++--- tests/kms_lease.c | 2 +- tests/kms_plane_cursor.c | 12 +++++------ tests/kms_plane_scaling.c | 20 ++++++++--------- tests/kms_prime.c | 2 +- tests/kms_scaling_modes.c | 4 ++-- tests/kms_universal_plane.c | 4 ++-- tests/kms_writeback.c | 1 + 21 files changed, 97 insertions(+), 80 deletions(-)
tests/i915/kms_ccs.c +1 -3
@@ -393,10 +393,8 @@ static void generate_fb(data_t *data, struct igt_fb *fb,*/ if (fb_flags &FB_COMPRESSED ) modifier = data->ccs_modifier; -else if (!(fb_flags &FB_HAS_PLANE )) - modifier =DRM_FORMAT_MOD_LINEAR ;else - modifier =0 ; + modifier =DRM_FORMAT_MOD_LINEAR ; create_fb_prepare_add(data->drm_fd, width, height, data->format, modifier,
tests/i915/kms_cdclk.c +2 -2
@@ -158,7 +158,7 @@ static void test_plane_scaling(data_t *data, enum pipe pipe, igt_output_t *outpuigt_create_color_pattern_fb (display->drm_fd, mode->hdisplay, mode->vdisplay,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , +DRM_FORMAT_MOD_LINEAR ,0.0 ,0.0 ,0.0 , &fb);igt_plane_set_fb (primary, &fb);
@@ -212,7 +212,7 @@ static void test_mode_transition(data_t *data, enum pipe pipe, igt_output_t *outigt_create_color_pattern_fb (display->drm_fd, mode->hdisplay, mode->vdisplay,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , +DRM_FORMAT_MOD_LINEAR ,0.0 ,0.0 ,0.0 , &fb);/* switch to lower resolution */
tests/i915/kms_pipe_b_c_ivb.c +1 -1
@@ -92,7 +92,7 @@ set_mode_on_pipe(data_t *data, enum pipe pipe, igt_output_t *output) fb_id =igt_create_color_fb (data->drm_fd, mode->hdisplay, mode->vdisplay, -DRM_FORMAT_XRGB8888 ,I915_TILING_NONE , +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,1.0 ,1.0 ,1.0 , &fb);igt_assert_lte (0 , fb_id);
tests/i915/kms_psr_stress_test.c +1 -1
@@ -374,4 +374,4 @@ igt_mainclose (data.debugfs_fd);close (data.drm_fd); } -} +}
tests/kms_addfb_basic.c +11 -11
@@ -68,10 +68,10 @@ static void invalid_tests(int fd) igt_fixture { gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo); gem_bo_small =igt_create_bo_with_dimensions (fd,1024 ,1023 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo_small); f.handles[0 ] = gem_bo;
@@ -276,7 +276,7 @@ static void pitch_tests(int fd) igt_fixture { gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo); }
@@ -417,10 +417,10 @@ static void size_tests(int fd)igt_display_require (&display, fd); gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo); gem_bo_small =igt_create_bo_with_dimensions (fd,1024 ,1023 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo_small); }
@@ -513,7 +513,7 @@ static void addfb25_tests(int fd) igt_fixture { gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo);memset (&f,0 ,sizeof (f));
@@ -597,10 +597,10 @@ static void addfb25_ytile(int fd)igt_display_require (&display, fd); gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo); gem_bo_small =igt_create_bo_with_dimensions (fd,1024 ,1023 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo_small);memset (&f,0 ,sizeof (f));
@@ -670,7 +670,7 @@ static void addfb25_4tile(int fd)igt_display_require (&display, fd); gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo);memset (&f,0 ,sizeof (f));
@@ -719,7 +719,7 @@ static void prop_tests(int fd) igt_fixture { gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo); f.handles[0 ] = gem_bo;
@@ -780,7 +780,7 @@ static void master_tests(int fd) igt_fixture { gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo); f.handles[0 ] = gem_bo;
tests/kms_async_flips.c +4 -0
@@ -494,9 +494,11 @@ static void test_crc(data_t *data) cr =igt_get_cairo_ctx (data->drm_fd, &data->bufs[frame]);igt_paint_color (cr,0 ,0 , data->bufs[frame].width, data->bufs[frame].height,1.0 ,0.0 ,0.0 ); +igt_put_cairo_ctx (cr); cr =igt_get_cairo_ctx (data->drm_fd, &data->bufs[!frame]);igt_paint_color (cr,0 ,0 , data->bufs[!frame].width, data->bufs[!frame].height,1.0 ,0.0 ,0.0 ); +igt_put_cairo_ctx (cr); ret = drmModeSetCrtc(data->drm_fd, data->crtc_id, data->bufs[frame].fb_id, 0, 0, &data->output->config.connector->connector_id, 1,
@@ -518,6 +520,7 @@ static void test_crc(data_t *data)/* fill the next fb with the expected color */ cr =igt_get_cairo_ctx (data->drm_fd, &data->bufs[frame]);igt_paint_color (cr,0 ,0 ,1 , data->bufs[frame].height,1.0 ,0.0 ,0.0 ); +igt_put_cairo_ctx (cr); data->flip_pending = true; ret = drmModePageFlip(data->drm_fd, data->crtc_id, data->bufs[frame].fb_id,
@@ -530,6 +533,7 @@ static void test_crc(data_t *data) frame = !frame; cr =igt_get_cairo_ctx (data->drm_fd, &data->bufs[frame]);igt_paint_color_rand (cr,0 ,0 ,1 , data->bufs[frame].height); +igt_put_cairo_ctx (cr); }igt_pipe_crc_stop (data->pipe_crc);
tests/kms_atomic.c +12 -12
@@ -305,12 +305,12 @@ plane_primary_overlay_mutable_zpos(igt_pipe_t *pipe, igt_output_t *output,uint32_t h_overlay = mode->vdisplay /2 ;igt_create_color_pattern_fb (pipe->display->drm_fd, - w, h, format_primary,I915_TILING_NONE , + w, h, format_primary,DRM_FORMAT_MOD_LINEAR ,0.2 ,0.2 ,0.2 , &fb_primary);igt_create_color_pattern_fb (pipe->display->drm_fd, w_overlay, h_overlay, - format_overlay,I915_TILING_NONE , + format_overlay,DRM_FORMAT_MOD_LINEAR ,0.2 ,0.2 ,0.2 , &fb_overlay);/* Draw a hole in the overlay */
@@ -404,7 +404,7 @@ plane_immutable_zpos(igt_display_t *display, igt_pipe_t *pipe,igt_create_color_fb (display->drm_fd, w_lower, h_lower,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , +DRM_FORMAT_MOD_LINEAR ,0.0 ,0.0 ,0.0 , &fb_ref);/* create reference image */
@@ -444,14 +444,14 @@ plane_immutable_zpos(igt_display_t *display, igt_pipe_t *pipe, fb_id_lower =igt_create_color_fb (display->drm_fd, w_lower, h_lower,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , +DRM_FORMAT_MOD_LINEAR ,0.0 ,0.0 ,1.0 , &fb_lower);igt_assert (fb_id_lower); fb_id_upper =igt_create_color_fb (display->drm_fd, w_upper, h_upper,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , +DRM_FORMAT_MOD_LINEAR ,1.0 ,1.0 ,0.0 , &fb_upper);igt_assert (fb_id_upper);
@@ -516,7 +516,7 @@ static void plane_overlay(igt_pipe_t *pipe, igt_output_t *output, igt_plane_t *pigt_require (format !=0 );igt_create_pattern_fb (pipe->display->drm_fd, w, h, - format,I915_TILING_NONE , &fb); + format,DRM_FORMAT_MOD_LINEAR , &fb);igt_plane_set_fb (plane, &fb);igt_plane_set_position (plane, w/2 , h/2 );
@@ -551,7 +551,7 @@ static void plane_primary(igt_pipe_t *pipe, igt_plane_t *plane, struct igt_fb *figt_create_color_pattern_fb (pipe->display->drm_fd, fb->width, fb->height, - fb->drm_format,I915_TILING_NONE , + fb->drm_format,DRM_FORMAT_MOD_LINEAR ,0.2 ,0.2 ,0.2 , &fb2);/* Flip the primary plane using the atomic API, and double-check
@@ -600,7 +600,7 @@ static void test_only(igt_pipe_t *pipe_obj,igt_create_pattern_fb (pipe_obj->display->drm_fd, mode->hdisplay, mode->vdisplay, - format,I915_TILING_NONE , &fb); + format,DRM_FORMAT_MOD_LINEAR , &fb);igt_plane_set_fb (primary, &fb);igt_output_set_pipe (output, pipe_obj->pipe);
@@ -737,7 +737,7 @@ static void plane_invalid_params(igt_pipe_t *pipe,/* Create a framebuffer too small for the plane configuration. */ igt_create_pattern_fb (pipe->display->drm_fd, fb->width -1 , fb->height -1 , - fb->drm_format,I915_TILING_NONE , &fb2); + fb->drm_format,DRM_FORMAT_MOD_LINEAR , &fb2);igt_plane_set_prop_value (plane,IGT_PLANE_FB_ID , fb2.fb_id);plane_commit_atomic_err (plane,ATOMIC_RELAX_NONE ,ENOSPC );
@@ -1072,7 +1072,7 @@ static void atomic_plane_damage(igt_pipe_t *pipe, igt_plane_t *plane, struct igt/* Color fb with white rect at center */ igt_create_color_fb (pipe->display->drm_fd, fb->width, fb->height, - fb->drm_format,I915_TILING_NONE ,0.2 ,0.2 ,0.2 , + fb->drm_format,DRM_FORMAT_MOD_LINEAR ,0.2 ,0.2 ,0.2 , &fb_1); cr_1 =igt_get_cairo_ctx (pipe->display->drm_fd, &fb_1); igt_paint_color(cr_1, fb->width/4, fb->height/4, fb->width/2,
@@ -1111,7 +1111,7 @@ static void atomic_plane_damage(igt_pipe_t *pipe, igt_plane_t *plane, struct igt* issue plane update with damage and verify the state. */ igt_create_color_fb (pipe->display->drm_fd, fb->width, fb->height, - fb->drm_format,I915_TILING_NONE ,0.2 ,0.2 ,0.2 , + fb->drm_format,DRM_FORMAT_MOD_LINEAR ,0.2 ,0.2 ,0.2 , &fb_2); damage[0 ].x1 = fb->width/2 ;
@@ -1141,7 +1141,7 @@ static void atomic_plane_damage(igt_pipe_t *pipe, igt_plane_t *plane, struct igt/* Reszie fb_1 to be bigger than plane */ igt_remove_fb (pipe->display->drm_fd, &fb_1);igt_create_color_fb (pipe->display->drm_fd, fb->width *2 , fb->height, - fb->drm_format,I915_TILING_NONE ,0.2 ,0.2 ,0.2 , + fb->drm_format,DRM_FORMAT_MOD_LINEAR ,0.2 ,0.2 ,0.2 , &fb_1); damage[0 ].x1 = fb->width;
tests/kms_atomic_transition.c +2 -2
@@ -824,9 +824,9 @@ retry: }igt_create_pattern_fb (data->drm_fd, width, height, -DRM_FORMAT_XRGB8888 ,0 , &data->fbs[0 ]); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR , &data->fbs[0 ]);igt_create_color_pattern_fb (data->drm_fd, width, height, -DRM_FORMAT_XRGB8888 ,0 ,.5 ,.5 ,.5 , &data->fbs[1 ]); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,.5 ,.5 ,.5 , &data->fbs[1 ]);for_each_pipe (&data->display, i) {igt_pipe_t *pipe = &data->display.pipes[i];
tests/kms_bw.c +1 -1
@@ -169,7 +169,7 @@ static void run_test_linear_tiling(data_t *data, int pipe, const drmModeModeInfoigt_create_color_fb (display->drm_fd, mode->hdisplay, mode->vdisplay,DRM_FORMAT_XRGB8888 , -DRM_FORMAT_MOD_NONE ,1.f ,0.f ,0.f , +DRM_FORMAT_MOD_LINEAR ,1.f ,0.f ,0.f , &buffer[i]);igt_output_set_pipe (output, i);
tests/kms_cursor_legacy.c +23 -13
@@ -193,7 +193,7 @@ static igt_output_t *set_fb_on_crtc(igt_display_t *display, enum pipe pipe, struigt_create_pattern_fb (display->drm_fd, mode->hdisplay, mode->vdisplay, -DRM_FORMAT_XRGB8888 ,I915_TILING_NONE , fb_info); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR , fb_info); primary =igt_output_get_plane_type (output,DRM_PLANE_TYPE_PRIMARY );igt_plane_set_fb (primary, fb_info);
@@ -386,7 +386,7 @@ static void prepare_flip_test(igt_display_t *display,igt_skip_on (width <=64 && height <=64 );igt_create_color_fb (display->drm_fd, width, height, -DRM_FORMAT_ARGB8888 ,0 ,1. ,0. ,.7 , cursor_fb2); +DRM_FORMAT_ARGB8888 ,DRM_FORMAT_MOD_LINEAR ,1. ,0. ,.7 , cursor_fb2); arg[0 ].flags = arg[1 ].flags =DRM_MODE_CURSOR_BO ; arg[1 ].handle = cursor_fb2->gem_handle;
@@ -412,7 +412,7 @@ static void prepare_flip_test(igt_display_t *display, display->pipes[flip_pipe].planes[1].type != DRM_PLANE_TYPE_CURSOR);igt_create_color_pattern_fb (display->drm_fd, prim_fb->width, prim_fb->height, -DRM_FORMAT_ARGB8888 ,0 ,.1 ,.1 ,.1 , argb_fb); +DRM_FORMAT_ARGB8888 ,DRM_FORMAT_MOD_LINEAR ,.1 ,.1 ,.1 , argb_fb); } }
@@ -458,9 +458,11 @@ static void flip(igt_display_t *display, } } -igt_create_color_fb (display->drm_fd, fb_info.width, fb_info.height,DRM_FORMAT_ARGB8888 ,0 ,.5 ,.5 ,.5 , &cursor_fb); +igt_create_color_fb (display->drm_fd, fb_info.width, fb_info.height, +DRM_FORMAT_ARGB8888 ,DRM_FORMAT_MOD_LINEAR ,.5 ,.5 ,.5 , &cursor_fb); -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb); cursor =set_cursor_on_pipe (display, cursor_pipe, &cursor_fb);populate_cursor_args (display, cursor_pipe, arg, &cursor_fb);
@@ -564,7 +566,8 @@ static void basic_flip_cursor(igt_display_t *display,igt_require ((output =set_fb_on_crtc (display, pipe, &fb_info))); -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb); cursor =set_cursor_on_pipe (display, pipe, &cursor_fb);populate_cursor_args (display, pipe, arg, &cursor_fb);
@@ -728,7 +731,8 @@ static void flip_vs_cursor(igt_display_t *display, enum flip_test mode, int nlooigt_require ((output =set_fb_on_crtc (display, pipe, &fb_info))); -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb); cursor =set_cursor_on_pipe (display, pipe, &cursor_fb);populate_cursor_args (display, pipe, arg, &cursor_fb);
@@ -852,7 +856,8 @@ static void nonblocking_modeset_vs_cursor(igt_display_t *display, int loops)igt_require (display->is_atomic);igt_require ((output =set_fb_on_crtc (display, pipe, &fb_info))); primary =igt_output_get_plane_type (output,DRM_PLANE_TYPE_PRIMARY ); -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb); cursor =set_cursor_on_pipe (display, pipe, &cursor_fb);populate_cursor_args (display, pipe, arg, &cursor_fb); arg[0 ].flags |=DRM_MODE_CURSOR_BO ;
@@ -972,7 +977,8 @@ static void two_screens_flip_vs_cursor(igt_display_t *display, int nloops, booligt_require ((output2 =set_fb_on_crtc (display, pipe2, &fb2_info))); } -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb); cursor =set_cursor_on_pipe (display, pipe, &cursor_fb);populate_cursor_args (display, pipe, arg1, &cursor_fb);
@@ -1137,7 +1143,8 @@ static void cursor_vs_flip(igt_display_t *display, enum flip_test mode, int nlooigt_require ((output =set_fb_on_crtc (display, pipe, &fb_info))); vrefresh =igt_output_get_mode (output)->vrefresh; -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb); cursor =set_cursor_on_pipe (display, pipe, &cursor_fb);populate_cursor_args (display, pipe, arg, &cursor_fb);
@@ -1249,7 +1256,8 @@ static void two_screens_cursor_vs_flip(igt_display_t *display, int nloops, booligt_require ((outputs[1 ] =set_fb_on_crtc (display, pipe[1 ], &fb_info[1 ]))); } -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb); cursors[0 ] =set_cursor_on_pipe (display, pipe[0 ], &cursor_fb);populate_cursor_args (display, pipe[0 ], arg[0 ], &cursor_fb);
@@ -1357,7 +1365,8 @@ static void flip_vs_cursor_crc(igt_display_t *display, bool atomic)igt_require ((output =set_fb_on_crtc (display, pipe, &fb_info))); -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb);populate_cursor_args (display, pipe, arg, &cursor_fb);igt_display_commit2 (display, display->is_atomic ?COMMIT_ATOMIC :COMMIT_LEGACY );
@@ -1430,7 +1439,8 @@ static void flip_vs_cursor_busy_crc(igt_display_t *display, bool atomic)igt_create_color_pattern_fb (display->drm_fd, fb_info[0 ].width, fb_info[0 ].height,DRM_FORMAT_XRGB8888 ,I915_FORMAT_MOD_X_TILED ,.1 ,.1 ,.1 , &fb_info[1 ]); -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb);populate_cursor_args (display, pipe, arg, &cursor_fb);igt_display_commit2 (display, display->is_atomic ?COMMIT_ATOMIC :COMMIT_LEGACY );
tests/kms_display_modes.c +4 -3
@@ -64,9 +64,9 @@ static void run_extendedmode_basic(data_t *data, int pipe1, int pipe2) pipe_crc[1 ] =igt_pipe_crc_new (data->drm_fd, pipe2,IGT_PIPE_CRC_SOURCE_AUTO );igt_create_color_fb (data->drm_fd, mode[0 ]->hdisplay, mode[0 ]->vdisplay, -DRM_FORMAT_XRGB8888 ,0 ,1 ,0 ,0 , &fbs[0 ]); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,1 ,0 ,0 , &fbs[0 ]);igt_create_color_fb (data->drm_fd, mode[1 ]->hdisplay, mode[1 ]->vdisplay, -DRM_FORMAT_XRGB8888 ,0 ,0 ,0 ,1 , &fbs[1 ]); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,0 ,1 , &fbs[1 ]); plane[0 ] =igt_pipe_get_plane_type (&display->pipes[pipe1],DRM_PLANE_TYPE_PRIMARY ); plane[1 ] =igt_pipe_get_plane_type (&display->pipes[pipe2],DRM_PLANE_TYPE_PRIMARY );
@@ -88,7 +88,8 @@ static void run_extendedmode_basic(data_t *data, int pipe1, int pipe2) width = mode[0 ]->hdisplay + mode[1 ]->hdisplay; height =max (mode[0 ]->vdisplay, mode[1 ]->vdisplay); -igt_create_fb (data->drm_fd, width, height,DRM_FORMAT_XRGB8888 ,0 , &fb); +igt_create_fb (data->drm_fd, width, height, +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR , &fb); cr =igt_get_cairo_ctx (data->drm_fd, &fb);igt_paint_color (cr,0 ,0 , mode[0 ]->hdisplay, mode[0 ]->vdisplay,1 ,0 ,0 );igt_paint_color (cr, mode[0 ]->hdisplay,0 , mode[1 ]->hdisplay, mode[1 ]->vdisplay,0 ,0 ,1 );
tests/kms_force_connector_basic.c +2 -2
@@ -68,8 +68,8 @@ static void force_load_detect(int drm_fd, drmModeConnectorPtr connector, drmMode/* No load detect on HDMI. */ igt_require (connector->connector_type ==DRM_MODE_CONNECTOR_VGA ); -igt_create_fb (drm_fd, w, h,DRM_FORMAT_XRGB8888 ,0 , &xrgb_fb); -igt_create_fb (drm_fd, w, h,DRM_FORMAT_ARGB8888 ,0 , &argb_fb); +igt_create_fb (drm_fd, w, h,DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR , &xrgb_fb); +igt_create_fb (drm_fd, w, h,DRM_FORMAT_ARGB8888 ,DRM_FORMAT_MOD_LINEAR , &argb_fb);igt_assert (drmSetClientCap (drm_fd,DRM_CLIENT_CAP_UNIVERSAL_PLANES ,1 ) ==0 );/*
tests/kms_getfb.c +4 -4
@@ -174,7 +174,7 @@ static void test_handle_input(int fd) add.pixel_format =DRM_FORMAT_XRGB8888 ; add.pitches[0 ] =1024 *4 ; add.handles[0 ] =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_require (add.handles[0 ] !=0 );do_ioctl (fd,DRM_IOCTL_MODE_ADDFB2 , &add); }
@@ -229,7 +229,7 @@ static void test_duplicate_handles(int fd) add.pixel_format =DRM_FORMAT_XRGB8888 ; add.pitches[0 ] =1024 *4 ; add.handles[0 ] =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (add.handles[0 ]);do_ioctl (fd,DRM_IOCTL_MODE_ADDFB2 , &add); }
@@ -296,7 +296,7 @@ static void test_getfb2(int fd) add_basic.pixel_format =DRM_FORMAT_XRGB8888 ; add_basic.pitches[0 ] =1024 *4 ; add_basic.handles[0 ] =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (add_basic.handles[0 ]);do_ioctl (fd,DRM_IOCTL_MODE_ADDFB2 , &add_basic);
@@ -403,7 +403,7 @@ static void test_handle_protection(void) { non_master_add.pixel_format =DRM_FORMAT_XRGB8888 ; non_master_add.pitches[0 ] =1024 *4 ; non_master_add.handles[0 ] =igt_create_bo_with_dimensions (non_master_fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_require (non_master_add.handles[0 ] !=0 );do_ioctl (non_master_fd,DRM_IOCTL_MODE_ADDFB2 , &non_master_add); }
tests/kms_hdr.c +6 -3
@@ -148,7 +148,8 @@ static void test_bpc_switch_on_output(data_t *data, enum pipe pipe,int afb_id, ret;/* 10-bit formats are slow, so limit the size. */ - afb_id =igt_create_fb (data->fd,512 ,512 ,DRM_FORMAT_XRGB2101010 ,0 , &afb); + afb_id =igt_create_fb (data->fd,512 ,512 , +DRM_FORMAT_XRGB2101010 ,DRM_FORMAT_MOD_LINEAR , &afb);igt_assert (afb_id);draw_hdr_pattern (&afb);
@@ -396,7 +397,8 @@ static void test_static_toggle(data_t *data, enum pipe pipe,int afb_id;/* 10-bit formats are slow, so limit the size. */ - afb_id =igt_create_fb (data->fd,512 ,512 ,DRM_FORMAT_XRGB2101010 ,0 , &afb); + afb_id =igt_create_fb (data->fd,512 ,512 , +DRM_FORMAT_XRGB2101010 ,DRM_FORMAT_MOD_LINEAR , &afb);igt_assert (afb_id);draw_hdr_pattern (&afb);
@@ -478,7 +480,8 @@ static void test_static_swap(data_t *data, enum pipe pipe, igt_output_t *output)struct hdr_output_metadata hdr;/* 10-bit formats are slow, so limit the size. */ - afb_id =igt_create_fb (data->fd,512 ,512 ,DRM_FORMAT_XRGB2101010 ,0 , &afb); + afb_id =igt_create_fb (data->fd,512 ,512 , +DRM_FORMAT_XRGB2101010 ,DRM_FORMAT_MOD_LINEAR , &afb);igt_assert (afb_id);draw_hdr_pattern (&afb);
tests/kms_lease.c +1 -1
@@ -207,7 +207,7 @@ static int paint_fb(int drm_fd, struct igt_fb *fb, const char *test_name,igt_cairo_printf_line (cr, align_hcenter,10 ,"%s" , connector_str);igt_cairo_printf_line (cr, align_hcenter,10 ,"%s" , pipe_str); -cairo_destroy (cr); +igt_put_cairo_ctx (cr);return 0 ; }
tests/kms_plane_cursor.c +6 -6
@@ -236,19 +236,19 @@ static void test_cursor(data_t *data, int size, unsigned int flags)test_cleanup (data); -igt_create_color_fb (data->drm_fd, sw, sh,DRM_FORMAT_XRGB8888 ,0 , -1.0 ,1.0 ,1.0 , &data->pfb); +igt_create_color_fb (data->drm_fd, sw, sh,DRM_FORMAT_XRGB8888 , +DRM_FORMAT_MOD_LINEAR ,1.0 ,1.0 ,1.0 , &data->pfb);if (flags &TEST_OVERLAY ) {int width = (flags &TEST_VIEWPORT ) ? data->or.w + pad : data->or.w;int height = (flags &TEST_VIEWPORT ) ? data->or.h + pad : data->or.h; -igt_create_color_fb (data->drm_fd, width, height, -DRM_FORMAT_XRGB8888 ,0 ,0.5 ,0.5 ,0.5 , &data->ofb); +igt_create_color_fb (data->drm_fd, width, height,DRM_FORMAT_XRGB8888 , +DRM_FORMAT_MOD_LINEAR ,0.5 ,0.5 ,0.5 , &data->ofb); } -igt_create_color_fb (data->drm_fd, size, size,DRM_FORMAT_ARGB8888 ,0 , -1.0 ,0.0 ,1.0 , &data->cfb); +igt_create_color_fb (data->drm_fd, size, size,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1.0 ,0.0 ,1.0 , &data->cfb);igt_plane_set_fb (data->primary, &data->pfb);igt_output_set_pipe (data->output, data->pipe_id);
tests/kms_plane_scaling.c +10 -10
@@ -702,7 +702,7 @@ static void setup_fb(int fd, int width, int height, {igt_create_color_pattern_fb (fd, width, height,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , +DRM_FORMAT_MOD_LINEAR , r, g, b, fb); }
@@ -787,17 +787,17 @@ test_invalid_num_scalers(data_t *d, enum pipe pipe, igt_output_t *output)igt_create_color_pattern_fb (display->drm_fd, width, height,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , +DRM_FORMAT_MOD_LINEAR ,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 , +DRM_FORMAT_MOD_LINEAR ,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 , +DRM_FORMAT_MOD_LINEAR ,0.0 ,0.0 ,1.0 , &d->fb[2 ]);igt_plane_set_fb (plane[0 ], &d->fb[0 ]);
@@ -854,16 +854,16 @@ static void test_scaler_with_multi_pipe_plane(data_t *d)igt_create_pattern_fb (d->drm_fd,600 ,600 ,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , &d->fb[0 ]); +DRM_FORMAT_MOD_LINEAR , &d->fb[0 ]);igt_create_pattern_fb (d->drm_fd,500 ,500 ,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , &d->fb[1 ]); +DRM_FORMAT_MOD_LINEAR , &d->fb[1 ]);igt_create_pattern_fb (d->drm_fd,700 ,700 ,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , &d->fb[2 ]); +DRM_FORMAT_MOD_LINEAR , &d->fb[2 ]);igt_create_pattern_fb (d->drm_fd,400 ,400 ,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , &d->fb[3 ]); +DRM_FORMAT_MOD_LINEAR , &d->fb[3 ]);igt_plane_set_fb (plane[0 ], &d->fb[0 ]);igt_plane_set_fb (plane[1 ], &d->fb[1 ]);
@@ -935,7 +935,7 @@ static void invalid_parameter_tests(data_t *d)igt_create_fb (d->drm_fd,256 ,256 ,DRM_FORMAT_XRGB8888 , -DRM_FORMAT_MOD_NONE , +DRM_FORMAT_MOD_LINEAR , &fb); }
@@ -1045,7 +1045,7 @@ static void i915_max_source_size_test(data_t *d)igt_create_fb (d->drm_fd,5120 ,4320 ,DRM_FORMAT_XRGB8888 , -DRM_FORMAT_MOD_NONE , +DRM_FORMAT_MOD_LINEAR , &fb); }
tests/kms_prime.c +1 -1
@@ -119,7 +119,7 @@ static void prepare_scratch(int exporter_fd, struct dumb_bo *scratch, scratch->size, PROT_WRITE); }else {igt_calc_fb_size (exporter_fd, mode->hdisplay, mode->vdisplay,DRM_FORMAT_XRGB8888 , -DRM_FORMAT_MOD_NONE , &scratch->size, &scratch->pitch); +DRM_FORMAT_MOD_LINEAR , &scratch->size, &scratch->pitch);if (gem_has_lmem (exporter_fd)) scratch->handle =gem_create_in_memory_regions (exporter_fd, scratch->size,REGION_LMEM (0 ),REGION_SMEM );
tests/kms_scaling_modes.c +2 -2
@@ -49,11 +49,11 @@ static void test_scaling_mode_on_output(igt_display_t *display, const enum pipe sprite =igt_output_get_plane_type (output,DRM_PLANE_TYPE_OVERLAY );igt_create_color_fb (display->drm_fd, mode.hdisplay, mode.vdisplay, -DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_NONE , +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0.f ,0.f ,1.f , &blue);igt_create_color_fb (display->drm_fd,640 ,480 , -DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_NONE , +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,1.f ,0.f ,0.f , &red);igt_plane_set_fb (primary, &blue);
tests/kms_universal_plane.c +2 -2
@@ -613,7 +613,7 @@ cursor_leak_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output)/* Black background FB */ igt_create_color_fb (data->drm_fd, mode->hdisplay, mode->vdisplay,DRM_FORMAT_XRGB8888 , - false, +DRM_FORMAT_MOD_LINEAR ,0.0 ,0.0 ,0.0 , &background_fb);
@@ -624,7 +624,7 @@ cursor_leak_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output) b =rand () %0xFF ; igt_create_color_fb(data->drm_fd, 64, 64, DRM_FORMAT_ARGB8888, - false, + DRM_FORMAT_MOD_LINEAR, (double)r / 0xFF, (double)g / 0xFF, (double)b / 0xFF,
tests/kms_writeback.c +1 -0
@@ -414,6 +414,7 @@ static void commit_and_dump_fb(igt_display_t *display, igt_output_t *output, igtsnprintf (filepath_out,PATH_MAX ,"%s/%s.png" , path_name, file_name); status =cairo_surface_write_to_png (fb_surface_out, filepath_out);igt_assert_eq (status,CAIRO_STATUS_SUCCESS ); +cairo_surface_destroy (fb_surface_out);igt_remove_fb (display->drm_fd, &output_fb); }
Signature · 1 line
2.39.1
Patchwork
CI[igt-dev] ✓ Fi.CI.BAT: success for tests/kms: Cleanup to use linear modifier and cairo ctx
== Series Details ==
== Series Details ==
Series: tests/kms: Cleanup to use linear modifier and cairo ctx
URL : https://patchwork.freedesktop.org/series/114965/
State : success
== Summary ==
CI Bug Log - changes from IGT_7190 -> IGTPW_8588
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/index.html
Participating hosts (36 -> 34)
------------------------------
Missing (2): fi-kbl-soraka fi-snb-2520m
Known issues
------------
Here are the changes found in IGTPW_8588 that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@i915_selftest@live@execlists:
- fi-bsw-n3050: [PASS][1] -> [ABORT][2] ([i915#7911])
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/fi-bsw-n3050/igt@i915_selftest@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/fi-bsw-n3050/igt@i915_selftest@[email protected]
- fi-bsw-nick: [PASS][3] -> [ABORT][4] ([i915#7911] / [i915#7913])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/fi-bsw-nick/igt@i915_selftest@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/fi-bsw-nick/igt@i915_selftest@[email protected]
* igt@i915_selftest@live@gt_heartbeat:
- fi-glk-j4005: [PASS][5] -> [DMESG-FAIL][6] ([i915#5334])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/fi-glk-j4005/igt@i915_selftest@live@gt_heartbeat.html
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/fi-glk-j4005/igt@i915_selftest@live@gt_heartbeat.html
* igt@i915_selftest@live@requests:
- bat-rpls-1: [PASS][7] -> [ABORT][8] ([i915#7694] / [i915#7911])
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/bat-rpls-1/igt@i915_selftest@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/bat-rpls-1/igt@i915_selftest@[email protected]
#### Warnings ####
* igt@i915_selftest@live@slpc:
- bat-rpls-2: [DMESG-FAIL][9] ([i915#6367] / [i915#7913] / [i915#7996]) -> [DMESG-FAIL][10] ([i915#6997] / [i915#7913])
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/bat-rpls-2/igt@i915_selftest@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/bat-rpls-2/igt@i915_selftest@[email protected]
[i915#5334]: https://gitlab.freedesktop.org/drm/intel/issues/5334
[i915#6367]: https://gitlab.freedesktop.org/drm/intel/issues/6367
[i915#6997]: https://gitlab.freedesktop.org/drm/intel/issues/6997
[i915#7694]: https://gitlab.freedesktop.org/drm/intel/issues/7694
[i915#7911]: https://gitlab.freedesktop.org/drm/intel/issues/7911
[i915#7913]: https://gitlab.freedesktop.org/drm/intel/issues/7913
[i915#7996]: https://gitlab.freedesktop.org/drm/intel/issues/7996
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7190 -> IGTPW_8588
CI-20190529: 20190529
CI_DRM_12836: b36bbf575b73703bed04f509381b0cc2e752845d @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8588: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/index.html
IGT_7190: f9d49501eaaadd39ae471094bc45a76a1ff93e42 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/index.html
Quoted 6 lines · Bhanuprakash Modem
While creating the framebuffer use the default modifier as
DRM_FORMAT_MOD_LINEARinstead of using deprecated modifiers, magic numbers,no_tilingmodifier etc..This patch will also nullify each
igt_get_cairo_ctx()call withigt_put_cairo_ctx().
Please do one logical change per patch.
Quoted 31 lines
Signed-off-by Bhanuprakash Modem <[email protected]>--- tests/i915/kms_ccs.c | 4 +--- tests/i915/kms_cdclk.c | 4 ++-- tests/i915/kms_pipe_b_c_ivb.c | 2 +- tests/i915/kms_psr_stress_test.c | 2 +- tests/kms_addfb_basic.c | 22 +++++++++---------- tests/kms_async_flips.c | 4 ++++ tests/kms_atomic.c | 24 ++++++++++----------- tests/kms_atomic_transition.c | 4 ++-- tests/kms_bw.c | 2 +- tests/kms_cursor_legacy.c | 36 ++++++++++++++++++++----------- tests/kms_display_modes.c | 7 +++--- tests/kms_force_connector_basic.c | 4 ++-- tests/kms_getfb.c | 8 +++---- tests/kms_hdr.c | 9 +++++--- tests/kms_lease.c | 2 +- tests/kms_plane_cursor.c | 12 +++++------ tests/kms_plane_scaling.c | 20 ++++++++--------- tests/kms_prime.c | 2 +- tests/kms_scaling_modes.c | 4 ++-- tests/kms_universal_plane.c | 4 ++-- tests/kms_writeback.c | 1 + 21 files changed, 97 insertions(+), 80 deletions(-)tests/i915/kms_ccs.c +0
-0
tests/i915/kms_ccs.c static void generate_fb(data_t *data, struct igt_fb *fb, · line 397
Quoted 8 lines
tests/i915/kms_ccs.c +1
-3@@ -393,10 +393,8 @@ static void generate_fb(data_t *data, struct igt_fb *fb,*/ if (fb_flags &FB_COMPRESSED ) modifier = data->ccs_modifier; -else if (!(fb_flags &FB_HAS_PLANE )) - modifier =DRM_FORMAT_MOD_LINEAR ;else - modifier =0 ; + modifier =DRM_FORMAT_MOD_LINEAR ;
That one could an explanation on its own since it's not a simple sed job.
Quoted 729 lines
tests/i915/kms_ccs.c +0
-0create_fb_prepare_add(data->drm_fd, width, height, data->format, modifier,tests/i915/kms_cdclk.c +2
-2@@ -158,7 +158,7 @@ static void test_plane_scaling(data_t *data, enum pipe pipe, igt_output_t *outpuigt_create_color_pattern_fb (display->drm_fd, mode->hdisplay, mode->vdisplay,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , +DRM_FORMAT_MOD_LINEAR ,0.0 ,0.0 ,0.0 , &fb);igt_plane_set_fb (primary, &fb);@@ -212,7 +212,7 @@ static void test_mode_transition(data_t *data, enum pipe pipe, igt_output_t *outigt_create_color_pattern_fb (display->drm_fd, mode->hdisplay, mode->vdisplay,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , +DRM_FORMAT_MOD_LINEAR ,0.0 ,0.0 ,0.0 , &fb);/* switch to lower resolution */ tests/i915/kms_pipe_b_c_ivb.c +1
-1@@ -92,7 +92,7 @@ set_mode_on_pipe(data_t *data, enum pipe pipe, igt_output_t *output) fb_id =igt_create_color_fb (data->drm_fd, mode->hdisplay, mode->vdisplay, -DRM_FORMAT_XRGB8888 ,I915_TILING_NONE , +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,1.0 ,1.0 ,1.0 , &fb);igt_assert_lte (0 , fb_id);tests/i915/kms_psr_stress_test.c +1
-1@@ -374,4 +374,4 @@ igt_mainclose (data.debugfs_fd);close (data.drm_fd); } -} +}tests/kms_addfb_basic.c +11
-11@@ -68,10 +68,10 @@ static void invalid_tests(int fd) igt_fixture { gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo); gem_bo_small =igt_create_bo_with_dimensions (fd,1024 ,1023 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo_small); f.handles[0 ] = gem_bo;@@ -276,7 +276,7 @@ static void pitch_tests(int fd) igt_fixture { gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo); }@@ -417,10 +417,10 @@ static void size_tests(int fd)igt_display_require (&display, fd); gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo); gem_bo_small =igt_create_bo_with_dimensions (fd,1024 ,1023 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo_small); }@@ -513,7 +513,7 @@ static void addfb25_tests(int fd) igt_fixture { gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo);memset (&f,0 ,sizeof (f));@@ -597,10 +597,10 @@ static void addfb25_ytile(int fd)igt_display_require (&display, fd); gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo); gem_bo_small =igt_create_bo_with_dimensions (fd,1024 ,1023 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo_small);memset (&f,0 ,sizeof (f));@@ -670,7 +670,7 @@ static void addfb25_4tile(int fd)igt_display_require (&display, fd); gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo);memset (&f,0 ,sizeof (f));@@ -719,7 +719,7 @@ static void prop_tests(int fd) igt_fixture { gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo); f.handles[0 ] = gem_bo;@@ -780,7 +780,7 @@ static void master_tests(int fd) igt_fixture { gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo); f.handles[0 ] = gem_bo;tests/kms_async_flips.c +4
-0@@ -494,9 +494,11 @@ static void test_crc(data_t *data) cr =igt_get_cairo_ctx (data->drm_fd, &data->bufs[frame]);igt_paint_color (cr,0 ,0 , data->bufs[frame].width, data->bufs[frame].height,1.0 ,0.0 ,0.0 ); +igt_put_cairo_ctx (cr); cr =igt_get_cairo_ctx (data->drm_fd, &data->bufs[!frame]);igt_paint_color (cr,0 ,0 , data->bufs[!frame].width, data->bufs[!frame].height,1.0 ,0.0 ,0.0 ); +igt_put_cairo_ctx (cr); ret = drmModeSetCrtc(data->drm_fd, data->crtc_id, data->bufs[frame].fb_id, 0, 0, &data->output->config.connector->connector_id, 1,@@ -518,6 +520,7 @@ static void test_crc(data_t *data)/* fill the next fb with the expected color */ cr =igt_get_cairo_ctx (data->drm_fd, &data->bufs[frame]);igt_paint_color (cr,0 ,0 ,1 , data->bufs[frame].height,1.0 ,0.0 ,0.0 ); +igt_put_cairo_ctx (cr); data->flip_pending = true; ret = drmModePageFlip(data->drm_fd, data->crtc_id, data->bufs[frame].fb_id,@@ -530,6 +533,7 @@ static void test_crc(data_t *data) frame = !frame; cr =igt_get_cairo_ctx (data->drm_fd, &data->bufs[frame]);igt_paint_color_rand (cr,0 ,0 ,1 , data->bufs[frame].height); +igt_put_cairo_ctx (cr); }igt_pipe_crc_stop (data->pipe_crc);tests/kms_atomic.c +12
-12@@ -305,12 +305,12 @@ plane_primary_overlay_mutable_zpos(igt_pipe_t *pipe, igt_output_t *output,uint32_t h_overlay = mode->vdisplay /2 ;igt_create_color_pattern_fb (pipe->display->drm_fd, - w, h, format_primary,I915_TILING_NONE , + w, h, format_primary,DRM_FORMAT_MOD_LINEAR ,0.2 ,0.2 ,0.2 , &fb_primary);igt_create_color_pattern_fb (pipe->display->drm_fd, w_overlay, h_overlay, - format_overlay,I915_TILING_NONE , + format_overlay,DRM_FORMAT_MOD_LINEAR ,0.2 ,0.2 ,0.2 , &fb_overlay);/* Draw a hole in the overlay */ @@ -404,7 +404,7 @@ plane_immutable_zpos(igt_display_t *display, igt_pipe_t *pipe,igt_create_color_fb (display->drm_fd, w_lower, h_lower,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , +DRM_FORMAT_MOD_LINEAR ,0.0 ,0.0 ,0.0 , &fb_ref);/* create reference image */ @@ -444,14 +444,14 @@ plane_immutable_zpos(igt_display_t *display, igt_pipe_t *pipe, fb_id_lower =igt_create_color_fb (display->drm_fd, w_lower, h_lower,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , +DRM_FORMAT_MOD_LINEAR ,0.0 ,0.0 ,1.0 , &fb_lower);igt_assert (fb_id_lower); fb_id_upper =igt_create_color_fb (display->drm_fd, w_upper, h_upper,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , +DRM_FORMAT_MOD_LINEAR ,1.0 ,1.0 ,0.0 , &fb_upper);igt_assert (fb_id_upper);@@ -516,7 +516,7 @@ static void plane_overlay(igt_pipe_t *pipe, igt_output_t *output, igt_plane_t *pigt_require (format !=0 );igt_create_pattern_fb (pipe->display->drm_fd, w, h, - format,I915_TILING_NONE , &fb); + format,DRM_FORMAT_MOD_LINEAR , &fb);igt_plane_set_fb (plane, &fb);igt_plane_set_position (plane, w/2 , h/2 );@@ -551,7 +551,7 @@ static void plane_primary(igt_pipe_t *pipe, igt_plane_t *plane, struct igt_fb *figt_create_color_pattern_fb (pipe->display->drm_fd, fb->width, fb->height, - fb->drm_format,I915_TILING_NONE , + fb->drm_format,DRM_FORMAT_MOD_LINEAR ,0.2 ,0.2 ,0.2 , &fb2);/* Flip the primary plane using the atomic API, and double-check @@ -600,7 +600,7 @@ static void test_only(igt_pipe_t *pipe_obj,igt_create_pattern_fb (pipe_obj->display->drm_fd, mode->hdisplay, mode->vdisplay, - format,I915_TILING_NONE , &fb); + format,DRM_FORMAT_MOD_LINEAR , &fb);igt_plane_set_fb (primary, &fb);igt_output_set_pipe (output, pipe_obj->pipe);@@ -737,7 +737,7 @@ static void plane_invalid_params(igt_pipe_t *pipe,/* Create a framebuffer too small for the plane configuration. */ igt_create_pattern_fb (pipe->display->drm_fd, fb->width -1 , fb->height -1 , - fb->drm_format,I915_TILING_NONE , &fb2); + fb->drm_format,DRM_FORMAT_MOD_LINEAR , &fb2);igt_plane_set_prop_value (plane,IGT_PLANE_FB_ID , fb2.fb_id);plane_commit_atomic_err (plane,ATOMIC_RELAX_NONE ,ENOSPC );@@ -1072,7 +1072,7 @@ static void atomic_plane_damage(igt_pipe_t *pipe, igt_plane_t *plane, struct igt/* Color fb with white rect at center */ igt_create_color_fb (pipe->display->drm_fd, fb->width, fb->height, - fb->drm_format,I915_TILING_NONE ,0.2 ,0.2 ,0.2 , + fb->drm_format,DRM_FORMAT_MOD_LINEAR ,0.2 ,0.2 ,0.2 , &fb_1); cr_1 =igt_get_cairo_ctx (pipe->display->drm_fd, &fb_1); igt_paint_color(cr_1, fb->width/4, fb->height/4, fb->width/2,@@ -1111,7 +1111,7 @@ static void atomic_plane_damage(igt_pipe_t *pipe, igt_plane_t *plane, struct igt* issue plane update with damage and verify the state. */ igt_create_color_fb (pipe->display->drm_fd, fb->width, fb->height, - fb->drm_format,I915_TILING_NONE ,0.2 ,0.2 ,0.2 , + fb->drm_format,DRM_FORMAT_MOD_LINEAR ,0.2 ,0.2 ,0.2 , &fb_2); damage[0 ].x1 = fb->width/2 ;@@ -1141,7 +1141,7 @@ static void atomic_plane_damage(igt_pipe_t *pipe, igt_plane_t *plane, struct igt/* Reszie fb_1 to be bigger than plane */ igt_remove_fb (pipe->display->drm_fd, &fb_1);igt_create_color_fb (pipe->display->drm_fd, fb->width *2 , fb->height, - fb->drm_format,I915_TILING_NONE ,0.2 ,0.2 ,0.2 , + fb->drm_format,DRM_FORMAT_MOD_LINEAR ,0.2 ,0.2 ,0.2 , &fb_1); damage[0 ].x1 = fb->width;tests/kms_atomic_transition.c +2
-2@@ -824,9 +824,9 @@ retry: }igt_create_pattern_fb (data->drm_fd, width, height, -DRM_FORMAT_XRGB8888 ,0 , &data->fbs[0 ]); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR , &data->fbs[0 ]);igt_create_color_pattern_fb (data->drm_fd, width, height, -DRM_FORMAT_XRGB8888 ,0 ,.5 ,.5 ,.5 , &data->fbs[1 ]); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,.5 ,.5 ,.5 , &data->fbs[1 ]);for_each_pipe (&data->display, i) {igt_pipe_t *pipe = &data->display.pipes[i];tests/kms_bw.c +1
-1@@ -169,7 +169,7 @@ static void run_test_linear_tiling(data_t *data, int pipe, const drmModeModeInfoigt_create_color_fb (display->drm_fd, mode->hdisplay, mode->vdisplay,DRM_FORMAT_XRGB8888 , -DRM_FORMAT_MOD_NONE ,1.f ,0.f ,0.f , +DRM_FORMAT_MOD_LINEAR ,1.f ,0.f ,0.f , &buffer[i]);igt_output_set_pipe (output, i);tests/kms_cursor_legacy.c +23
-13@@ -193,7 +193,7 @@ static igt_output_t *set_fb_on_crtc(igt_display_t *display, enum pipe pipe, struigt_create_pattern_fb (display->drm_fd, mode->hdisplay, mode->vdisplay, -DRM_FORMAT_XRGB8888 ,I915_TILING_NONE , fb_info); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR , fb_info); primary =igt_output_get_plane_type (output,DRM_PLANE_TYPE_PRIMARY );igt_plane_set_fb (primary, fb_info);@@ -386,7 +386,7 @@ static void prepare_flip_test(igt_display_t *display,igt_skip_on (width <=64 && height <=64 );igt_create_color_fb (display->drm_fd, width, height, -DRM_FORMAT_ARGB8888 ,0 ,1. ,0. ,.7 , cursor_fb2); +DRM_FORMAT_ARGB8888 ,DRM_FORMAT_MOD_LINEAR ,1. ,0. ,.7 , cursor_fb2); arg[0 ].flags = arg[1 ].flags =DRM_MODE_CURSOR_BO ; arg[1 ].handle = cursor_fb2->gem_handle;@@ -412,7 +412,7 @@ static void prepare_flip_test(igt_display_t *display, display->pipes[flip_pipe].planes[1].type != DRM_PLANE_TYPE_CURSOR);igt_create_color_pattern_fb (display->drm_fd, prim_fb->width, prim_fb->height, -DRM_FORMAT_ARGB8888 ,0 ,.1 ,.1 ,.1 , argb_fb); +DRM_FORMAT_ARGB8888 ,DRM_FORMAT_MOD_LINEAR ,.1 ,.1 ,.1 , argb_fb); } }@@ -458,9 +458,11 @@ static void flip(igt_display_t *display, } } -igt_create_color_fb (display->drm_fd, fb_info.width, fb_info.height,DRM_FORMAT_ARGB8888 ,0 ,.5 ,.5 ,.5 , &cursor_fb); +igt_create_color_fb (display->drm_fd, fb_info.width, fb_info.height, +DRM_FORMAT_ARGB8888 ,DRM_FORMAT_MOD_LINEAR ,.5 ,.5 ,.5 , &cursor_fb); -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb); cursor =set_cursor_on_pipe (display, cursor_pipe, &cursor_fb);populate_cursor_args (display, cursor_pipe, arg, &cursor_fb);@@ -564,7 +566,8 @@ static void basic_flip_cursor(igt_display_t *display,igt_require ((output =set_fb_on_crtc (display, pipe, &fb_info))); -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb); cursor =set_cursor_on_pipe (display, pipe, &cursor_fb);populate_cursor_args (display, pipe, arg, &cursor_fb);@@ -728,7 +731,8 @@ static void flip_vs_cursor(igt_display_t *display, enum flip_test mode, int nlooigt_require ((output =set_fb_on_crtc (display, pipe, &fb_info))); -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb); cursor =set_cursor_on_pipe (display, pipe, &cursor_fb);populate_cursor_args (display, pipe, arg, &cursor_fb);@@ -852,7 +856,8 @@ static void nonblocking_modeset_vs_cursor(igt_display_t *display, int loops)igt_require (display->is_atomic);igt_require ((output =set_fb_on_crtc (display, pipe, &fb_info))); primary =igt_output_get_plane_type (output,DRM_PLANE_TYPE_PRIMARY ); -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb); cursor =set_cursor_on_pipe (display, pipe, &cursor_fb);populate_cursor_args (display, pipe, arg, &cursor_fb); arg[0 ].flags |=DRM_MODE_CURSOR_BO ;@@ -972,7 +977,8 @@ static void two_screens_flip_vs_cursor(igt_display_t *display, int nloops, booligt_require ((output2 =set_fb_on_crtc (display, pipe2, &fb2_info))); } -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb); cursor =set_cursor_on_pipe (display, pipe, &cursor_fb);populate_cursor_args (display, pipe, arg1, &cursor_fb);@@ -1137,7 +1143,8 @@ static void cursor_vs_flip(igt_display_t *display, enum flip_test mode, int nlooigt_require ((output =set_fb_on_crtc (display, pipe, &fb_info))); vrefresh =igt_output_get_mode (output)->vrefresh; -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb); cursor =set_cursor_on_pipe (display, pipe, &cursor_fb);populate_cursor_args (display, pipe, arg, &cursor_fb);@@ -1249,7 +1256,8 @@ static void two_screens_cursor_vs_flip(igt_display_t *display, int nloops, booligt_require ((outputs[1 ] =set_fb_on_crtc (display, pipe[1 ], &fb_info[1 ]))); } -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb); cursors[0 ] =set_cursor_on_pipe (display, pipe[0 ], &cursor_fb);populate_cursor_args (display, pipe[0 ], arg[0 ], &cursor_fb);@@ -1357,7 +1365,8 @@ static void flip_vs_cursor_crc(igt_display_t *display, bool atomic)igt_require ((output =set_fb_on_crtc (display, pipe, &fb_info))); -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb);populate_cursor_args (display, pipe, arg, &cursor_fb);igt_display_commit2 (display, display->is_atomic ?COMMIT_ATOMIC :COMMIT_LEGACY );@@ -1430,7 +1439,8 @@ static void flip_vs_cursor_busy_crc(igt_display_t *display, bool atomic)igt_create_color_pattern_fb (display->drm_fd, fb_info[0 ].width, fb_info[0 ].height,DRM_FORMAT_XRGB8888 ,I915_FORMAT_MOD_X_TILED ,.1 ,.1 ,.1 , &fb_info[1 ]); -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb);populate_cursor_args (display, pipe, arg, &cursor_fb);igt_display_commit2 (display, display->is_atomic ?COMMIT_ATOMIC :COMMIT_LEGACY );tests/kms_display_modes.c +4
-3@@ -64,9 +64,9 @@ static void run_extendedmode_basic(data_t *data, int pipe1, int pipe2) pipe_crc[1 ] =igt_pipe_crc_new (data->drm_fd, pipe2,IGT_PIPE_CRC_SOURCE_AUTO );igt_create_color_fb (data->drm_fd, mode[0 ]->hdisplay, mode[0 ]->vdisplay, -DRM_FORMAT_XRGB8888 ,0 ,1 ,0 ,0 , &fbs[0 ]); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,1 ,0 ,0 , &fbs[0 ]);igt_create_color_fb (data->drm_fd, mode[1 ]->hdisplay, mode[1 ]->vdisplay, -DRM_FORMAT_XRGB8888 ,0 ,0 ,0 ,1 , &fbs[1 ]); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,0 ,1 , &fbs[1 ]); plane[0 ] =igt_pipe_get_plane_type (&display->pipes[pipe1],DRM_PLANE_TYPE_PRIMARY ); plane[1 ] =igt_pipe_get_plane_type (&display->pipes[pipe2],DRM_PLANE_TYPE_PRIMARY );@@ -88,7 +88,8 @@ static void run_extendedmode_basic(data_t *data, int pipe1, int pipe2) width = mode[0 ]->hdisplay + mode[1 ]->hdisplay; height =max (mode[0 ]->vdisplay, mode[1 ]->vdisplay); -igt_create_fb (data->drm_fd, width, height,DRM_FORMAT_XRGB8888 ,0 , &fb); +igt_create_fb (data->drm_fd, width, height, +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR , &fb); cr =igt_get_cairo_ctx (data->drm_fd, &fb);igt_paint_color (cr,0 ,0 , mode[0 ]->hdisplay, mode[0 ]->vdisplay,1 ,0 ,0 );igt_paint_color (cr, mode[0 ]->hdisplay,0 , mode[1 ]->hdisplay, mode[1 ]->vdisplay,0 ,0 ,1 );tests/kms_force_connector_basic.c +2
-2@@ -68,8 +68,8 @@ static void force_load_detect(int drm_fd, drmModeConnectorPtr connector, drmMode/* No load detect on HDMI. */ igt_require (connector->connector_type ==DRM_MODE_CONNECTOR_VGA ); -igt_create_fb (drm_fd, w, h,DRM_FORMAT_XRGB8888 ,0 , &xrgb_fb); -igt_create_fb (drm_fd, w, h,DRM_FORMAT_ARGB8888 ,0 , &argb_fb); +igt_create_fb (drm_fd, w, h,DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR , &xrgb_fb); +igt_create_fb (drm_fd, w, h,DRM_FORMAT_ARGB8888 ,DRM_FORMAT_MOD_LINEAR , &argb_fb);igt_assert (drmSetClientCap (drm_fd,DRM_CLIENT_CAP_UNIVERSAL_PLANES ,1 ) ==0 );/* tests/kms_getfb.c +4
-4@@ -174,7 +174,7 @@ static void test_handle_input(int fd) add.pixel_format =DRM_FORMAT_XRGB8888 ; add.pitches[0 ] =1024 *4 ; add.handles[0 ] =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_require (add.handles[0 ] !=0 );do_ioctl (fd,DRM_IOCTL_MODE_ADDFB2 , &add); }@@ -229,7 +229,7 @@ static void test_duplicate_handles(int fd) add.pixel_format =DRM_FORMAT_XRGB8888 ; add.pitches[0 ] =1024 *4 ; add.handles[0 ] =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (add.handles[0 ]);do_ioctl (fd,DRM_IOCTL_MODE_ADDFB2 , &add); }@@ -296,7 +296,7 @@ static void test_getfb2(int fd) add_basic.pixel_format =DRM_FORMAT_XRGB8888 ; add_basic.pitches[0 ] =1024 *4 ; add_basic.handles[0 ] =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (add_basic.handles[0 ]);do_ioctl (fd,DRM_IOCTL_MODE_ADDFB2 , &add_basic);@@ -403,7 +403,7 @@ static void test_handle_protection(void) { non_master_add.pixel_format =DRM_FORMAT_XRGB8888 ; non_master_add.pitches[0 ] =1024 *4 ; non_master_add.handles[0 ] =igt_create_bo_with_dimensions (non_master_fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_require (non_master_add.handles[0 ] !=0 );do_ioctl (non_master_fd,DRM_IOCTL_MODE_ADDFB2 , &non_master_add); }tests/kms_hdr.c +6
-3@@ -148,7 +148,8 @@ static void test_bpc_switch_on_output(data_t *data, enum pipe pipe,int afb_id, ret;/* 10-bit formats are slow, so limit the size. */ - afb_id =igt_create_fb (data->fd,512 ,512 ,DRM_FORMAT_XRGB2101010 ,0 , &afb); + afb_id =igt_create_fb (data->fd,512 ,512 , +DRM_FORMAT_XRGB2101010 ,DRM_FORMAT_MOD_LINEAR , &afb);igt_assert (afb_id);draw_hdr_pattern (&afb);@@ -396,7 +397,8 @@ static void test_static_toggle(data_t *data, enum pipe pipe,int afb_id;/* 10-bit formats are slow, so limit the size. */ - afb_id =igt_create_fb (data->fd,512 ,512 ,DRM_FORMAT_XRGB2101010 ,0 , &afb); + afb_id =igt_create_fb (data->fd,512 ,512 , +DRM_FORMAT_XRGB2101010 ,DRM_FORMAT_MOD_LINEAR , &afb);igt_assert (afb_id);draw_hdr_pattern (&afb);@@ -478,7 +480,8 @@ static void test_static_swap(data_t *data, enum pipe pipe, igt_output_t *output)struct hdr_output_metadata hdr;/* 10-bit formats are slow, so limit the size. */ - afb_id =igt_create_fb (data->fd,512 ,512 ,DRM_FORMAT_XRGB2101010 ,0 , &afb); + afb_id =igt_create_fb (data->fd,512 ,512 , +DRM_FORMAT_XRGB2101010 ,DRM_FORMAT_MOD_LINEAR , &afb);igt_assert (afb_id);draw_hdr_pattern (&afb);tests/kms_lease.c +1
-1@@ -207,7 +207,7 @@ static int paint_fb(int drm_fd, struct igt_fb *fb, const char *test_name,igt_cairo_printf_line (cr, align_hcenter,10 ,"%s" , connector_str);igt_cairo_printf_line (cr, align_hcenter,10 ,"%s" , pipe_str); -cairo_destroy (cr); +igt_put_cairo_ctx (cr);return 0 ; }tests/kms_plane_cursor.c +6
-6@@ -236,19 +236,19 @@ static void test_cursor(data_t *data, int size, unsigned int flags)test_cleanup (data); -igt_create_color_fb (data->drm_fd, sw, sh,DRM_FORMAT_XRGB8888 ,0 , -1.0 ,1.0 ,1.0 , &data->pfb); +igt_create_color_fb (data->drm_fd, sw, sh,DRM_FORMAT_XRGB8888 , +DRM_FORMAT_MOD_LINEAR ,1.0 ,1.0 ,1.0 , &data->pfb);if (flags &TEST_OVERLAY ) {int width = (flags &TEST_VIEWPORT ) ? data->or.w + pad : data->or.w;int height = (flags &TEST_VIEWPORT ) ? data->or.h + pad : data->or.h; -igt_create_color_fb (data->drm_fd, width, height, -DRM_FORMAT_XRGB8888 ,0 ,0.5 ,0.5 ,0.5 , &data->ofb); +igt_create_color_fb (data->drm_fd, width, height,DRM_FORMAT_XRGB8888 , +DRM_FORMAT_MOD_LINEAR ,0.5 ,0.5 ,0.5 , &data->ofb); } -igt_create_color_fb (data->drm_fd, size, size,DRM_FORMAT_ARGB8888 ,0 , -1.0 ,0.0 ,1.0 , &data->cfb); +igt_create_color_fb (data->drm_fd, size, size,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1.0 ,0.0 ,1.0 , &data->cfb);igt_plane_set_fb (data->primary, &data->pfb);igt_output_set_pipe (data->output, data->pipe_id);tests/kms_plane_scaling.c +10
-10@@ -702,7 +702,7 @@ static void setup_fb(int fd, int width, int height, {igt_create_color_pattern_fb (fd, width, height,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , +DRM_FORMAT_MOD_LINEAR , r, g, b, fb); }@@ -787,17 +787,17 @@ test_invalid_num_scalers(data_t *d, enum pipe pipe, igt_output_t *output)igt_create_color_pattern_fb (display->drm_fd, width, height,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , +DRM_FORMAT_MOD_LINEAR ,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 , +DRM_FORMAT_MOD_LINEAR ,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 , +DRM_FORMAT_MOD_LINEAR ,0.0 ,0.0 ,1.0 , &d->fb[2 ]);igt_plane_set_fb (plane[0 ], &d->fb[0 ]);@@ -854,16 +854,16 @@ static void test_scaler_with_multi_pipe_plane(data_t *d)igt_create_pattern_fb (d->drm_fd,600 ,600 ,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , &d->fb[0 ]); +DRM_FORMAT_MOD_LINEAR , &d->fb[0 ]);igt_create_pattern_fb (d->drm_fd,500 ,500 ,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , &d->fb[1 ]); +DRM_FORMAT_MOD_LINEAR , &d->fb[1 ]);igt_create_pattern_fb (d->drm_fd,700 ,700 ,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , &d->fb[2 ]); +DRM_FORMAT_MOD_LINEAR , &d->fb[2 ]);igt_create_pattern_fb (d->drm_fd,400 ,400 ,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , &d->fb[3 ]); +DRM_FORMAT_MOD_LINEAR , &d->fb[3 ]);igt_plane_set_fb (plane[0 ], &d->fb[0 ]);igt_plane_set_fb (plane[1 ], &d->fb[1 ]);@@ -935,7 +935,7 @@ static void invalid_parameter_tests(data_t *d)igt_create_fb (d->drm_fd,256 ,256 ,DRM_FORMAT_XRGB8888 , -DRM_FORMAT_MOD_NONE , +DRM_FORMAT_MOD_LINEAR , &fb); }@@ -1045,7 +1045,7 @@ static void i915_max_source_size_test(data_t *d)igt_create_fb (d->drm_fd,5120 ,4320 ,DRM_FORMAT_XRGB8888 , -DRM_FORMAT_MOD_NONE , +DRM_FORMAT_MOD_LINEAR , &fb); }tests/kms_prime.c +1
-1@@ -119,7 +119,7 @@ static void prepare_scratch(int exporter_fd, struct dumb_bo *scratch, scratch->size, PROT_WRITE); }else {igt_calc_fb_size (exporter_fd, mode->hdisplay, mode->vdisplay,DRM_FORMAT_XRGB8888 , -DRM_FORMAT_MOD_NONE , &scratch->size, &scratch->pitch); +DRM_FORMAT_MOD_LINEAR , &scratch->size, &scratch->pitch);if (gem_has_lmem (exporter_fd)) scratch->handle =gem_create_in_memory_regions (exporter_fd, scratch->size,REGION_LMEM (0 ),REGION_SMEM );tests/kms_scaling_modes.c +2
-2@@ -49,11 +49,11 @@ static void test_scaling_mode_on_output(igt_display_t *display, const enum pipe sprite =igt_output_get_plane_type (output,DRM_PLANE_TYPE_OVERLAY );igt_create_color_fb (display->drm_fd, mode.hdisplay, mode.vdisplay, -DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_NONE , +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0.f ,0.f ,1.f , &blue);igt_create_color_fb (display->drm_fd,640 ,480 , -DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_NONE , +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,1.f ,0.f ,0.f , &red);igt_plane_set_fb (primary, &blue);tests/kms_universal_plane.c +2
-2@@ -613,7 +613,7 @@ cursor_leak_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output)/* Black background FB */ igt_create_color_fb (data->drm_fd, mode->hdisplay, mode->vdisplay,DRM_FORMAT_XRGB8888 , - false, +DRM_FORMAT_MOD_LINEAR ,0.0 ,0.0 ,0.0 , &background_fb);@@ -624,7 +624,7 @@ cursor_leak_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output) b =rand () %0xFF ; igt_create_color_fb(data->drm_fd, 64, 64, DRM_FORMAT_ARGB8888, - false, + DRM_FORMAT_MOD_LINEAR, (double)r / 0xFF, (double)g / 0xFF, (double)b / 0xFF,tests/kms_writeback.c +1
-0@@ -414,6 +414,7 @@ static void commit_and_dump_fb(igt_display_t *display, igt_output_t *output, igtsnprintf (filepath_out,PATH_MAX ,"%s/%s.png" , path_name, file_name); status =cairo_surface_write_to_png (fb_surface_out, filepath_out);igt_assert_eq (status,CAIRO_STATUS_SUCCESS ); +cairo_surface_destroy (fb_surface_out);igt_remove_fb (display->drm_fd, &output_fb); }Signature · 1 line
2.39.1
Signature · 2 lines
Ville Syrjälä Intel
Hi Ville,
Quoted 9 lines · Ville Syrjälä
Quoted 6 lines · Bhanuprakash Modem
While creating the framebuffer use the default modifier as
DRM_FORMAT_MOD_LINEARinstead of using deprecated modifiers, magic numbers,no_tilingmodifier etc..This patch will also nullify each
igt_get_cairo_ctx()call withigt_put_cairo_ctx().Please do one logical change per patch.
Sure, will float a separate patch.
Quoted 27 lines
Quoted 27 lines
Signed-off-by Bhanuprakash Modem <[email protected]>--- tests/i915/kms_ccs.c | 4 +--- tests/i915/kms_cdclk.c | 4 ++-- tests/i915/kms_pipe_b_c_ivb.c | 2 +- tests/i915/kms_psr_stress_test.c | 2 +- tests/kms_addfb_basic.c | 22 +++++++++---------- tests/kms_async_flips.c | 4 ++++ tests/kms_atomic.c | 24 ++++++++++----------- tests/kms_atomic_transition.c | 4 ++-- tests/kms_bw.c | 2 +- tests/kms_cursor_legacy.c | 36 ++++++++++++++++++++----------- tests/kms_display_modes.c | 7 +++--- tests/kms_force_connector_basic.c | 4 ++-- tests/kms_getfb.c | 8 +++---- tests/kms_hdr.c | 9 +++++--- tests/kms_lease.c | 2 +- tests/kms_plane_cursor.c | 12 +++++------ tests/kms_plane_scaling.c | 20 ++++++++--------- tests/kms_prime.c | 2 +- tests/kms_scaling_modes.c | 4 ++-- tests/kms_universal_plane.c | 4 ++-- tests/kms_writeback.c | 1 + 21 files changed, 97 insertions(+), 80 deletions(-)
Quoted 16 lines
tests/i915/kms_ccs.c static void generate_fb(data_t *data, struct igt_fb *fb, · line 397
Quoted 13 lines
tests/i915/kms_ccs.c +1
-3@@ -393,10 +393,8 @@ static void generate_fb(data_t *data, struct igt_fb *fb,*/ if (fb_flags &FB_COMPRESSED ) modifier = data->ccs_modifier; -else if (!(fb_flags &FB_HAS_PLANE )) - modifier =DRM_FORMAT_MOD_LINEAR ;else - modifier =0 ; + modifier =DRM_FORMAT_MOD_LINEAR ;That one could an explanation on its own since it's not a simple sed job.
We need to use either compressed or linear modifier to test [*]. Also, the 0 (DRM_FORMAT_MOD_NONE) is deprecated and we must use linear.
[*]: https://cgit.freedesktop.org/drm/igt-gpu-tools/tree/tests/i915/kms_ccs.c#n389
- Bhanu
Quoted 731 lines
Quoted 730 lines
tests/i915/kms_ccs.c +0
-0create_fb_prepare_add(data->drm_fd, width, height, data->format, modifier,tests/i915/kms_cdclk.c +2
-2@@ -158,7 +158,7 @@ static void test_plane_scaling(data_t *data, enum pipe pipe, igt_output_t *outpuigt_create_color_pattern_fb (display->drm_fd, mode->hdisplay, mode->vdisplay,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , +DRM_FORMAT_MOD_LINEAR ,0.0 ,0.0 ,0.0 , &fb);igt_plane_set_fb (primary, &fb);@@ -212,7 +212,7 @@ static void test_mode_transition(data_t *data, enum pipe pipe, igt_output_t *outigt_create_color_pattern_fb (display->drm_fd, mode->hdisplay, mode->vdisplay,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , +DRM_FORMAT_MOD_LINEAR ,0.0 ,0.0 ,0.0 , &fb);/* switch to lower resolution */ tests/i915/kms_pipe_b_c_ivb.c +1
-1@@ -92,7 +92,7 @@ set_mode_on_pipe(data_t *data, enum pipe pipe, igt_output_t *output) fb_id =igt_create_color_fb (data->drm_fd, mode->hdisplay, mode->vdisplay, -DRM_FORMAT_XRGB8888 ,I915_TILING_NONE , +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,1.0 ,1.0 ,1.0 , &fb);igt_assert_lte (0 , fb_id);tests/i915/kms_psr_stress_test.c +1
-1@@ -374,4 +374,4 @@ igt_mainclose (data.debugfs_fd);close (data.drm_fd); } -} +}tests/kms_addfb_basic.c +11
-11@@ -68,10 +68,10 @@ static void invalid_tests(int fd) igt_fixture { gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo); gem_bo_small =igt_create_bo_with_dimensions (fd,1024 ,1023 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo_small); f.handles[0 ] = gem_bo;@@ -276,7 +276,7 @@ static void pitch_tests(int fd) igt_fixture { gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo); }@@ -417,10 +417,10 @@ static void size_tests(int fd)igt_display_require (&display, fd); gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo); gem_bo_small =igt_create_bo_with_dimensions (fd,1024 ,1023 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo_small); }@@ -513,7 +513,7 @@ static void addfb25_tests(int fd) igt_fixture { gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo);memset (&f,0 ,sizeof (f));@@ -597,10 +597,10 @@ static void addfb25_ytile(int fd)igt_display_require (&display, fd); gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo); gem_bo_small =igt_create_bo_with_dimensions (fd,1024 ,1023 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo_small);memset (&f,0 ,sizeof (f));@@ -670,7 +670,7 @@ static void addfb25_4tile(int fd)igt_display_require (&display, fd); gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo);memset (&f,0 ,sizeof (f));@@ -719,7 +719,7 @@ static void prop_tests(int fd) igt_fixture { gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo); f.handles[0 ] = gem_bo;@@ -780,7 +780,7 @@ static void master_tests(int fd) igt_fixture { gem_bo =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (gem_bo); f.handles[0 ] = gem_bo;tests/kms_async_flips.c +4
-0@@ -494,9 +494,11 @@ static void test_crc(data_t *data) cr =igt_get_cairo_ctx (data->drm_fd, &data->bufs[frame]);igt_paint_color (cr,0 ,0 , data->bufs[frame].width, data->bufs[frame].height,1.0 ,0.0 ,0.0 ); +igt_put_cairo_ctx (cr); cr =igt_get_cairo_ctx (data->drm_fd, &data->bufs[!frame]);igt_paint_color (cr,0 ,0 , data->bufs[!frame].width, data->bufs[!frame].height,1.0 ,0.0 ,0.0 ); +igt_put_cairo_ctx (cr); ret = drmModeSetCrtc(data->drm_fd, data->crtc_id, data->bufs[frame].fb_id, 0, 0, &data->output->config.connector->connector_id, 1,@@ -518,6 +520,7 @@ static void test_crc(data_t *data)/* fill the next fb with the expected color */ cr =igt_get_cairo_ctx (data->drm_fd, &data->bufs[frame]);igt_paint_color (cr,0 ,0 ,1 , data->bufs[frame].height,1.0 ,0.0 ,0.0 ); +igt_put_cairo_ctx (cr); data->flip_pending = true; ret = drmModePageFlip(data->drm_fd, data->crtc_id, data->bufs[frame].fb_id,@@ -530,6 +533,7 @@ static void test_crc(data_t *data) frame = !frame; cr =igt_get_cairo_ctx (data->drm_fd, &data->bufs[frame]);igt_paint_color_rand (cr,0 ,0 ,1 , data->bufs[frame].height); +igt_put_cairo_ctx (cr); }igt_pipe_crc_stop (data->pipe_crc);tests/kms_atomic.c +12
-12@@ -305,12 +305,12 @@ plane_primary_overlay_mutable_zpos(igt_pipe_t *pipe, igt_output_t *output,uint32_t h_overlay = mode->vdisplay /2 ;igt_create_color_pattern_fb (pipe->display->drm_fd, - w, h, format_primary,I915_TILING_NONE , + w, h, format_primary,DRM_FORMAT_MOD_LINEAR ,0.2 ,0.2 ,0.2 , &fb_primary);igt_create_color_pattern_fb (pipe->display->drm_fd, w_overlay, h_overlay, - format_overlay,I915_TILING_NONE , + format_overlay,DRM_FORMAT_MOD_LINEAR ,0.2 ,0.2 ,0.2 , &fb_overlay);/* Draw a hole in the overlay */ @@ -404,7 +404,7 @@ plane_immutable_zpos(igt_display_t *display, igt_pipe_t *pipe,igt_create_color_fb (display->drm_fd, w_lower, h_lower,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , +DRM_FORMAT_MOD_LINEAR ,0.0 ,0.0 ,0.0 , &fb_ref);/* create reference image */ @@ -444,14 +444,14 @@ plane_immutable_zpos(igt_display_t *display, igt_pipe_t *pipe, fb_id_lower =igt_create_color_fb (display->drm_fd, w_lower, h_lower,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , +DRM_FORMAT_MOD_LINEAR ,0.0 ,0.0 ,1.0 , &fb_lower);igt_assert (fb_id_lower); fb_id_upper =igt_create_color_fb (display->drm_fd, w_upper, h_upper,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , +DRM_FORMAT_MOD_LINEAR ,1.0 ,1.0 ,0.0 , &fb_upper);igt_assert (fb_id_upper);@@ -516,7 +516,7 @@ static void plane_overlay(igt_pipe_t *pipe, igt_output_t *output, igt_plane_t *pigt_require (format !=0 );igt_create_pattern_fb (pipe->display->drm_fd, w, h, - format,I915_TILING_NONE , &fb); + format,DRM_FORMAT_MOD_LINEAR , &fb);igt_plane_set_fb (plane, &fb);igt_plane_set_position (plane, w/2 , h/2 );@@ -551,7 +551,7 @@ static void plane_primary(igt_pipe_t *pipe, igt_plane_t *plane, struct igt_fb *figt_create_color_pattern_fb (pipe->display->drm_fd, fb->width, fb->height, - fb->drm_format,I915_TILING_NONE , + fb->drm_format,DRM_FORMAT_MOD_LINEAR ,0.2 ,0.2 ,0.2 , &fb2);/* Flip the primary plane using the atomic API, and double-check @@ -600,7 +600,7 @@ static void test_only(igt_pipe_t *pipe_obj,igt_create_pattern_fb (pipe_obj->display->drm_fd, mode->hdisplay, mode->vdisplay, - format,I915_TILING_NONE , &fb); + format,DRM_FORMAT_MOD_LINEAR , &fb);igt_plane_set_fb (primary, &fb);igt_output_set_pipe (output, pipe_obj->pipe);@@ -737,7 +737,7 @@ static void plane_invalid_params(igt_pipe_t *pipe,/* Create a framebuffer too small for the plane configuration. */ igt_create_pattern_fb (pipe->display->drm_fd, fb->width -1 , fb->height -1 , - fb->drm_format,I915_TILING_NONE , &fb2); + fb->drm_format,DRM_FORMAT_MOD_LINEAR , &fb2);igt_plane_set_prop_value (plane,IGT_PLANE_FB_ID , fb2.fb_id);plane_commit_atomic_err (plane,ATOMIC_RELAX_NONE ,ENOSPC );@@ -1072,7 +1072,7 @@ static void atomic_plane_damage(igt_pipe_t *pipe, igt_plane_t *plane, struct igt/* Color fb with white rect at center */ igt_create_color_fb (pipe->display->drm_fd, fb->width, fb->height, - fb->drm_format,I915_TILING_NONE ,0.2 ,0.2 ,0.2 , + fb->drm_format,DRM_FORMAT_MOD_LINEAR ,0.2 ,0.2 ,0.2 , &fb_1); cr_1 =igt_get_cairo_ctx (pipe->display->drm_fd, &fb_1); igt_paint_color(cr_1, fb->width/4, fb->height/4, fb->width/2,@@ -1111,7 +1111,7 @@ static void atomic_plane_damage(igt_pipe_t *pipe, igt_plane_t *plane, struct igt* issue plane update with damage and verify the state. */ igt_create_color_fb (pipe->display->drm_fd, fb->width, fb->height, - fb->drm_format,I915_TILING_NONE ,0.2 ,0.2 ,0.2 , + fb->drm_format,DRM_FORMAT_MOD_LINEAR ,0.2 ,0.2 ,0.2 , &fb_2); damage[0 ].x1 = fb->width/2 ;@@ -1141,7 +1141,7 @@ static void atomic_plane_damage(igt_pipe_t *pipe, igt_plane_t *plane, struct igt/* Reszie fb_1 to be bigger than plane */ igt_remove_fb (pipe->display->drm_fd, &fb_1);igt_create_color_fb (pipe->display->drm_fd, fb->width *2 , fb->height, - fb->drm_format,I915_TILING_NONE ,0.2 ,0.2 ,0.2 , + fb->drm_format,DRM_FORMAT_MOD_LINEAR ,0.2 ,0.2 ,0.2 , &fb_1); damage[0 ].x1 = fb->width;tests/kms_atomic_transition.c +2
-2@@ -824,9 +824,9 @@ retry: }igt_create_pattern_fb (data->drm_fd, width, height, -DRM_FORMAT_XRGB8888 ,0 , &data->fbs[0 ]); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR , &data->fbs[0 ]);igt_create_color_pattern_fb (data->drm_fd, width, height, -DRM_FORMAT_XRGB8888 ,0 ,.5 ,.5 ,.5 , &data->fbs[1 ]); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,.5 ,.5 ,.5 , &data->fbs[1 ]);for_each_pipe (&data->display, i) {igt_pipe_t *pipe = &data->display.pipes[i];tests/kms_bw.c +1
-1@@ -169,7 +169,7 @@ static void run_test_linear_tiling(data_t *data, int pipe, const drmModeModeInfoigt_create_color_fb (display->drm_fd, mode->hdisplay, mode->vdisplay,DRM_FORMAT_XRGB8888 , -DRM_FORMAT_MOD_NONE ,1.f ,0.f ,0.f , +DRM_FORMAT_MOD_LINEAR ,1.f ,0.f ,0.f , &buffer[i]);igt_output_set_pipe (output, i);tests/kms_cursor_legacy.c +23
-13@@ -193,7 +193,7 @@ static igt_output_t *set_fb_on_crtc(igt_display_t *display, enum pipe pipe, struigt_create_pattern_fb (display->drm_fd, mode->hdisplay, mode->vdisplay, -DRM_FORMAT_XRGB8888 ,I915_TILING_NONE , fb_info); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR , fb_info); primary =igt_output_get_plane_type (output,DRM_PLANE_TYPE_PRIMARY );igt_plane_set_fb (primary, fb_info);@@ -386,7 +386,7 @@ static void prepare_flip_test(igt_display_t *display,igt_skip_on (width <=64 && height <=64 );igt_create_color_fb (display->drm_fd, width, height, -DRM_FORMAT_ARGB8888 ,0 ,1. ,0. ,.7 , cursor_fb2); +DRM_FORMAT_ARGB8888 ,DRM_FORMAT_MOD_LINEAR ,1. ,0. ,.7 , cursor_fb2); arg[0 ].flags = arg[1 ].flags =DRM_MODE_CURSOR_BO ; arg[1 ].handle = cursor_fb2->gem_handle;@@ -412,7 +412,7 @@ static void prepare_flip_test(igt_display_t *display, display->pipes[flip_pipe].planes[1].type != DRM_PLANE_TYPE_CURSOR);igt_create_color_pattern_fb (display->drm_fd, prim_fb->width, prim_fb->height, -DRM_FORMAT_ARGB8888 ,0 ,.1 ,.1 ,.1 , argb_fb); +DRM_FORMAT_ARGB8888 ,DRM_FORMAT_MOD_LINEAR ,.1 ,.1 ,.1 , argb_fb); } }@@ -458,9 +458,11 @@ static void flip(igt_display_t *display, } } -igt_create_color_fb (display->drm_fd, fb_info.width, fb_info.height,DRM_FORMAT_ARGB8888 ,0 ,.5 ,.5 ,.5 , &cursor_fb); +igt_create_color_fb (display->drm_fd, fb_info.width, fb_info.height, +DRM_FORMAT_ARGB8888 ,DRM_FORMAT_MOD_LINEAR ,.5 ,.5 ,.5 , &cursor_fb); -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb); cursor =set_cursor_on_pipe (display, cursor_pipe, &cursor_fb);populate_cursor_args (display, cursor_pipe, arg, &cursor_fb);@@ -564,7 +566,8 @@ static void basic_flip_cursor(igt_display_t *display,igt_require ((output =set_fb_on_crtc (display, pipe, &fb_info))); -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb); cursor =set_cursor_on_pipe (display, pipe, &cursor_fb);populate_cursor_args (display, pipe, arg, &cursor_fb);@@ -728,7 +731,8 @@ static void flip_vs_cursor(igt_display_t *display, enum flip_test mode, int nlooigt_require ((output =set_fb_on_crtc (display, pipe, &fb_info))); -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb); cursor =set_cursor_on_pipe (display, pipe, &cursor_fb);populate_cursor_args (display, pipe, arg, &cursor_fb);@@ -852,7 +856,8 @@ static void nonblocking_modeset_vs_cursor(igt_display_t *display, int loops)igt_require (display->is_atomic);igt_require ((output =set_fb_on_crtc (display, pipe, &fb_info))); primary =igt_output_get_plane_type (output,DRM_PLANE_TYPE_PRIMARY ); -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb); cursor =set_cursor_on_pipe (display, pipe, &cursor_fb);populate_cursor_args (display, pipe, arg, &cursor_fb); arg[0 ].flags |=DRM_MODE_CURSOR_BO ;@@ -972,7 +977,8 @@ static void two_screens_flip_vs_cursor(igt_display_t *display, int nloops, booligt_require ((output2 =set_fb_on_crtc (display, pipe2, &fb2_info))); } -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb); cursor =set_cursor_on_pipe (display, pipe, &cursor_fb);populate_cursor_args (display, pipe, arg1, &cursor_fb);@@ -1137,7 +1143,8 @@ static void cursor_vs_flip(igt_display_t *display, enum flip_test mode, int nlooigt_require ((output =set_fb_on_crtc (display, pipe, &fb_info))); vrefresh =igt_output_get_mode (output)->vrefresh; -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb); cursor =set_cursor_on_pipe (display, pipe, &cursor_fb);populate_cursor_args (display, pipe, arg, &cursor_fb);@@ -1249,7 +1256,8 @@ static void two_screens_cursor_vs_flip(igt_display_t *display, int nloops, booligt_require ((outputs[1 ] =set_fb_on_crtc (display, pipe[1 ], &fb_info[1 ]))); } -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb); cursors[0 ] =set_cursor_on_pipe (display, pipe[0 ], &cursor_fb);populate_cursor_args (display, pipe[0 ], arg[0 ], &cursor_fb);@@ -1357,7 +1365,8 @@ static void flip_vs_cursor_crc(igt_display_t *display, bool atomic)igt_require ((output =set_fb_on_crtc (display, pipe, &fb_info))); -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb);populate_cursor_args (display, pipe, arg, &cursor_fb);igt_display_commit2 (display, display->is_atomic ?COMMIT_ATOMIC :COMMIT_LEGACY );@@ -1430,7 +1439,8 @@ static void flip_vs_cursor_busy_crc(igt_display_t *display, bool atomic)igt_create_color_pattern_fb (display->drm_fd, fb_info[0 ].width, fb_info[0 ].height,DRM_FORMAT_XRGB8888 ,I915_FORMAT_MOD_X_TILED ,.1 ,.1 ,.1 , &fb_info[1 ]); -igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 ,0 ,1. ,1. ,1. , &cursor_fb); +igt_create_color_fb (display->drm_fd,64 ,64 ,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1. ,1. ,1. , &cursor_fb);populate_cursor_args (display, pipe, arg, &cursor_fb);igt_display_commit2 (display, display->is_atomic ?COMMIT_ATOMIC :COMMIT_LEGACY );tests/kms_display_modes.c +4
-3@@ -64,9 +64,9 @@ static void run_extendedmode_basic(data_t *data, int pipe1, int pipe2) pipe_crc[1 ] =igt_pipe_crc_new (data->drm_fd, pipe2,IGT_PIPE_CRC_SOURCE_AUTO );igt_create_color_fb (data->drm_fd, mode[0 ]->hdisplay, mode[0 ]->vdisplay, -DRM_FORMAT_XRGB8888 ,0 ,1 ,0 ,0 , &fbs[0 ]); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,1 ,0 ,0 , &fbs[0 ]);igt_create_color_fb (data->drm_fd, mode[1 ]->hdisplay, mode[1 ]->vdisplay, -DRM_FORMAT_XRGB8888 ,0 ,0 ,0 ,1 , &fbs[1 ]); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,0 ,1 , &fbs[1 ]); plane[0 ] =igt_pipe_get_plane_type (&display->pipes[pipe1],DRM_PLANE_TYPE_PRIMARY ); plane[1 ] =igt_pipe_get_plane_type (&display->pipes[pipe2],DRM_PLANE_TYPE_PRIMARY );@@ -88,7 +88,8 @@ static void run_extendedmode_basic(data_t *data, int pipe1, int pipe2) width = mode[0 ]->hdisplay + mode[1 ]->hdisplay; height =max (mode[0 ]->vdisplay, mode[1 ]->vdisplay); -igt_create_fb (data->drm_fd, width, height,DRM_FORMAT_XRGB8888 ,0 , &fb); +igt_create_fb (data->drm_fd, width, height, +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR , &fb); cr =igt_get_cairo_ctx (data->drm_fd, &fb);igt_paint_color (cr,0 ,0 , mode[0 ]->hdisplay, mode[0 ]->vdisplay,1 ,0 ,0 );igt_paint_color (cr, mode[0 ]->hdisplay,0 , mode[1 ]->hdisplay, mode[1 ]->vdisplay,0 ,0 ,1 );tests/kms_force_connector_basic.c +2
-2@@ -68,8 +68,8 @@ static void force_load_detect(int drm_fd, drmModeConnectorPtr connector, drmMode/* No load detect on HDMI. */ igt_require (connector->connector_type ==DRM_MODE_CONNECTOR_VGA ); -igt_create_fb (drm_fd, w, h,DRM_FORMAT_XRGB8888 ,0 , &xrgb_fb); -igt_create_fb (drm_fd, w, h,DRM_FORMAT_ARGB8888 ,0 , &argb_fb); +igt_create_fb (drm_fd, w, h,DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR , &xrgb_fb); +igt_create_fb (drm_fd, w, h,DRM_FORMAT_ARGB8888 ,DRM_FORMAT_MOD_LINEAR , &argb_fb);igt_assert (drmSetClientCap (drm_fd,DRM_CLIENT_CAP_UNIVERSAL_PLANES ,1 ) ==0 );/* tests/kms_getfb.c +4
-4@@ -174,7 +174,7 @@ static void test_handle_input(int fd) add.pixel_format =DRM_FORMAT_XRGB8888 ; add.pitches[0 ] =1024 *4 ; add.handles[0 ] =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_require (add.handles[0 ] !=0 );do_ioctl (fd,DRM_IOCTL_MODE_ADDFB2 , &add); }@@ -229,7 +229,7 @@ static void test_duplicate_handles(int fd) add.pixel_format =DRM_FORMAT_XRGB8888 ; add.pitches[0 ] =1024 *4 ; add.handles[0 ] =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (add.handles[0 ]);do_ioctl (fd,DRM_IOCTL_MODE_ADDFB2 , &add); }@@ -296,7 +296,7 @@ static void test_getfb2(int fd) add_basic.pixel_format =DRM_FORMAT_XRGB8888 ; add_basic.pitches[0 ] =1024 *4 ; add_basic.handles[0 ] =igt_create_bo_with_dimensions (fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_assert (add_basic.handles[0 ]);do_ioctl (fd,DRM_IOCTL_MODE_ADDFB2 , &add_basic);@@ -403,7 +403,7 @@ static void test_handle_protection(void) { non_master_add.pixel_format =DRM_FORMAT_XRGB8888 ; non_master_add.pitches[0 ] =1024 *4 ; non_master_add.handles[0 ] =igt_create_bo_with_dimensions (non_master_fd,1024 ,1024 , -DRM_FORMAT_XRGB8888 ,0 ,0 ,NULL ,NULL ,NULL ); +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0 ,NULL ,NULL ,NULL );igt_require (non_master_add.handles[0 ] !=0 );do_ioctl (non_master_fd,DRM_IOCTL_MODE_ADDFB2 , &non_master_add); }tests/kms_hdr.c +6
-3@@ -148,7 +148,8 @@ static void test_bpc_switch_on_output(data_t *data, enum pipe pipe,int afb_id, ret;/* 10-bit formats are slow, so limit the size. */ - afb_id =igt_create_fb (data->fd,512 ,512 ,DRM_FORMAT_XRGB2101010 ,0 , &afb); + afb_id =igt_create_fb (data->fd,512 ,512 , +DRM_FORMAT_XRGB2101010 ,DRM_FORMAT_MOD_LINEAR , &afb);igt_assert (afb_id);draw_hdr_pattern (&afb);@@ -396,7 +397,8 @@ static void test_static_toggle(data_t *data, enum pipe pipe,int afb_id;/* 10-bit formats are slow, so limit the size. */ - afb_id =igt_create_fb (data->fd,512 ,512 ,DRM_FORMAT_XRGB2101010 ,0 , &afb); + afb_id =igt_create_fb (data->fd,512 ,512 , +DRM_FORMAT_XRGB2101010 ,DRM_FORMAT_MOD_LINEAR , &afb);igt_assert (afb_id);draw_hdr_pattern (&afb);@@ -478,7 +480,8 @@ static void test_static_swap(data_t *data, enum pipe pipe, igt_output_t *output)struct hdr_output_metadata hdr;/* 10-bit formats are slow, so limit the size. */ - afb_id =igt_create_fb (data->fd,512 ,512 ,DRM_FORMAT_XRGB2101010 ,0 , &afb); + afb_id =igt_create_fb (data->fd,512 ,512 , +DRM_FORMAT_XRGB2101010 ,DRM_FORMAT_MOD_LINEAR , &afb);igt_assert (afb_id);draw_hdr_pattern (&afb);tests/kms_lease.c +1
-1@@ -207,7 +207,7 @@ static int paint_fb(int drm_fd, struct igt_fb *fb, const char *test_name,igt_cairo_printf_line (cr, align_hcenter,10 ,"%s" , connector_str);igt_cairo_printf_line (cr, align_hcenter,10 ,"%s" , pipe_str); -cairo_destroy (cr); +igt_put_cairo_ctx (cr);return 0 ; }tests/kms_plane_cursor.c +6
-6@@ -236,19 +236,19 @@ static void test_cursor(data_t *data, int size, unsigned int flags)test_cleanup (data); -igt_create_color_fb (data->drm_fd, sw, sh,DRM_FORMAT_XRGB8888 ,0 , -1.0 ,1.0 ,1.0 , &data->pfb); +igt_create_color_fb (data->drm_fd, sw, sh,DRM_FORMAT_XRGB8888 , +DRM_FORMAT_MOD_LINEAR ,1.0 ,1.0 ,1.0 , &data->pfb);if (flags &TEST_OVERLAY ) {int width = (flags &TEST_VIEWPORT ) ? data->or.w + pad : data->or.w;int height = (flags &TEST_VIEWPORT ) ? data->or.h + pad : data->or.h; -igt_create_color_fb (data->drm_fd, width, height, -DRM_FORMAT_XRGB8888 ,0 ,0.5 ,0.5 ,0.5 , &data->ofb); +igt_create_color_fb (data->drm_fd, width, height,DRM_FORMAT_XRGB8888 , +DRM_FORMAT_MOD_LINEAR ,0.5 ,0.5 ,0.5 , &data->ofb); } -igt_create_color_fb (data->drm_fd, size, size,DRM_FORMAT_ARGB8888 ,0 , -1.0 ,0.0 ,1.0 , &data->cfb); +igt_create_color_fb (data->drm_fd, size, size,DRM_FORMAT_ARGB8888 , +DRM_FORMAT_MOD_LINEAR ,1.0 ,0.0 ,1.0 , &data->cfb);igt_plane_set_fb (data->primary, &data->pfb);igt_output_set_pipe (data->output, data->pipe_id);tests/kms_plane_scaling.c +10
-10@@ -702,7 +702,7 @@ static void setup_fb(int fd, int width, int height, {igt_create_color_pattern_fb (fd, width, height,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , +DRM_FORMAT_MOD_LINEAR , r, g, b, fb); }@@ -787,17 +787,17 @@ test_invalid_num_scalers(data_t *d, enum pipe pipe, igt_output_t *output)igt_create_color_pattern_fb (display->drm_fd, width, height,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , +DRM_FORMAT_MOD_LINEAR ,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 , +DRM_FORMAT_MOD_LINEAR ,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 , +DRM_FORMAT_MOD_LINEAR ,0.0 ,0.0 ,1.0 , &d->fb[2 ]);igt_plane_set_fb (plane[0 ], &d->fb[0 ]);@@ -854,16 +854,16 @@ static void test_scaler_with_multi_pipe_plane(data_t *d)igt_create_pattern_fb (d->drm_fd,600 ,600 ,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , &d->fb[0 ]); +DRM_FORMAT_MOD_LINEAR , &d->fb[0 ]);igt_create_pattern_fb (d->drm_fd,500 ,500 ,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , &d->fb[1 ]); +DRM_FORMAT_MOD_LINEAR , &d->fb[1 ]);igt_create_pattern_fb (d->drm_fd,700 ,700 ,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , &d->fb[2 ]); +DRM_FORMAT_MOD_LINEAR , &d->fb[2 ]);igt_create_pattern_fb (d->drm_fd,400 ,400 ,DRM_FORMAT_XRGB8888 , -I915_TILING_NONE , &d->fb[3 ]); +DRM_FORMAT_MOD_LINEAR , &d->fb[3 ]);igt_plane_set_fb (plane[0 ], &d->fb[0 ]);igt_plane_set_fb (plane[1 ], &d->fb[1 ]);@@ -935,7 +935,7 @@ static void invalid_parameter_tests(data_t *d)igt_create_fb (d->drm_fd,256 ,256 ,DRM_FORMAT_XRGB8888 , -DRM_FORMAT_MOD_NONE , +DRM_FORMAT_MOD_LINEAR , &fb); }@@ -1045,7 +1045,7 @@ static void i915_max_source_size_test(data_t *d)igt_create_fb (d->drm_fd,5120 ,4320 ,DRM_FORMAT_XRGB8888 , -DRM_FORMAT_MOD_NONE , +DRM_FORMAT_MOD_LINEAR , &fb); }tests/kms_prime.c +1
-1@@ -119,7 +119,7 @@ static void prepare_scratch(int exporter_fd, struct dumb_bo *scratch, scratch->size, PROT_WRITE); }else {igt_calc_fb_size (exporter_fd, mode->hdisplay, mode->vdisplay,DRM_FORMAT_XRGB8888 , -DRM_FORMAT_MOD_NONE , &scratch->size, &scratch->pitch); +DRM_FORMAT_MOD_LINEAR , &scratch->size, &scratch->pitch);if (gem_has_lmem (exporter_fd)) scratch->handle =gem_create_in_memory_regions (exporter_fd, scratch->size,REGION_LMEM (0 ),REGION_SMEM );tests/kms_scaling_modes.c +2
-2@@ -49,11 +49,11 @@ static void test_scaling_mode_on_output(igt_display_t *display, const enum pipe sprite =igt_output_get_plane_type (output,DRM_PLANE_TYPE_OVERLAY );igt_create_color_fb (display->drm_fd, mode.hdisplay, mode.vdisplay, -DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_NONE , +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,0.f ,0.f ,1.f , &blue);igt_create_color_fb (display->drm_fd,640 ,480 , -DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_NONE , +DRM_FORMAT_XRGB8888 ,DRM_FORMAT_MOD_LINEAR ,1.f ,0.f ,0.f , &red);igt_plane_set_fb (primary, &blue);tests/kms_universal_plane.c +2
-2@@ -613,7 +613,7 @@ cursor_leak_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output)/* Black background FB */ igt_create_color_fb (data->drm_fd, mode->hdisplay, mode->vdisplay,DRM_FORMAT_XRGB8888 , - false, +DRM_FORMAT_MOD_LINEAR ,0.0 ,0.0 ,0.0 , &background_fb);@@ -624,7 +624,7 @@ cursor_leak_test_pipe(data_t *data, enum pipe pipe, igt_output_t *output) b =rand () %0xFF ; igt_create_color_fb(data->drm_fd, 64, 64, DRM_FORMAT_ARGB8888, - false, + DRM_FORMAT_MOD_LINEAR, (double)r / 0xFF, (double)g / 0xFF, (double)b / 0xFF,tests/kms_writeback.c +1
-0@@ -414,6 +414,7 @@ static void commit_and_dump_fb(igt_display_t *display, igt_output_t *output, igtsnprintf (filepath_out,PATH_MAX ,"%s/%s.png" , path_name, file_name); status =cairo_surface_write_to_png (fb_surface_out, filepath_out);igt_assert_eq (status,CAIRO_STATUS_SUCCESS ); +cairo_surface_destroy (fb_surface_out);igt_remove_fb (display->drm_fd, &output_fb); }Signature · 1 line
2.39.1
Patchwork
CI[igt-dev] ✓ Fi.CI.IGT: success for tests/kms: Cleanup to use linear modifier and cairo ctx
In reply to Bhanuprakash Modem== Series Details ==
== Series Details ==
Series: tests/kms: Cleanup to use linear modifier and cairo ctx
URL : https://patchwork.freedesktop.org/series/114965/
State : success
== Summary ==
CI Bug Log - changes from IGT_7190_full -> IGTPW_8588_full
====================================================
Summary
-------
**SUCCESS**
No regressions found.
External URL: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/index.html
Participating hosts (8 -> 9)
------------------------------
Additional (1): shard-rkl0
Known issues
------------
Here are the changes found in IGTPW_8588_full that come from known issues:
### IGT changes ###
#### Issues hit ####
* igt@gem_exec_fair@basic-none-rrul@rcs0:
- shard-glk: [PASS][1] -> [FAIL][2] ([i915#2842]) +5 similar issues
[1]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-glk7/igt@gem_exec_fair@[email protected]
[2]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-glk3/igt@gem_exec_fair@[email protected]
* igt@i915_pm_dc@dc9-dpms:
- shard-apl: [PASS][3] -> [FAIL][4] ([i915#4275])
[3]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-apl2/igt@[email protected]
[4]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-apl7/igt@[email protected]
* igt@perf@stress-open-close:
- shard-glk: [PASS][5] -> [ABORT][6] ([i915#5213])
[5]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-glk5/igt@[email protected]
[6]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-glk2/igt@[email protected]
#### Possible fixes ####
* igt@drm_fdinfo@virtual-idle:
- {shard-rkl}: [FAIL][7] ([i915#7742]) -> [PASS][8] +1 similar issue
[7]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-rkl-2/igt@[email protected]
[8]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-rkl-4/igt@[email protected]
* igt@fbdev@nullptr:
- {shard-rkl}: [SKIP][9] ([i915#2582]) -> [PASS][10]
[9]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-rkl-5/igt@[email protected]
[10]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-rkl-6/igt@[email protected]
* {igt@gem_barrier_race@remote-request@rcs0}:
- {shard-rkl}: [ABORT][11] -> [PASS][12]
[11]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-rkl-1/igt@gem_barrier_race@[email protected]
[12]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-rkl-6/igt@gem_barrier_race@[email protected]
* igt@gem_exec_balancer@fairslice:
- {shard-rkl}: [SKIP][13] ([i915#6259]) -> [PASS][14]
[13]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-rkl-5/igt@[email protected]
[14]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-rkl-1/igt@[email protected]
* igt@gem_exec_fair@basic-none-share@rcs0:
- {shard-rkl}: [FAIL][15] ([i915#2842]) -> [PASS][16]
[15]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-rkl-4/igt@gem_exec_fair@[email protected]
[16]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-rkl-5/igt@gem_exec_fair@[email protected]
* igt@gem_exec_fair@basic-throttle@rcs0:
- shard-glk: [FAIL][17] ([i915#2842]) -> [PASS][18] +1 similar issue
[17]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-glk4/igt@gem_exec_fair@[email protected]
[18]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-glk5/igt@gem_exec_fair@[email protected]
* igt@gem_exec_reloc@basic-wc-read-noreloc:
- {shard-rkl}: [SKIP][19] ([i915#3281]) -> [PASS][20] +9 similar issues
[19]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-rkl-2/igt@[email protected]
[20]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-rkl-5/igt@[email protected]
* igt@gem_tiled_partial_pwrite_pread@writes:
- {shard-rkl}: [SKIP][21] ([i915#3282]) -> [PASS][22] +1 similar issue
[21]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-rkl-6/igt@[email protected]
[22]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-rkl-5/igt@[email protected]
* igt@gen9_exec_parse@allowed-all:
- {shard-rkl}: [SKIP][23] ([i915#2527]) -> [PASS][24] +1 similar issue
[23]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-rkl-4/igt@[email protected]
[24]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-rkl-5/igt@[email protected]
* igt@i915_pm_dc@dc5-psr:
- {shard-rkl}: [SKIP][25] ([i915#658]) -> [PASS][26]
[25]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-rkl-2/igt@[email protected]
[26]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-rkl-6/igt@[email protected]
* igt@i915_pm_lpsp@kms-lpsp@kms-lpsp-hdmi-a:
- {shard-dg1}: [SKIP][27] ([i915#1937]) -> [PASS][28]
[27]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-dg1-16/igt@i915_pm_lpsp@[email protected]
[28]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-dg1-14/igt@i915_pm_lpsp@[email protected]
* igt@i915_pm_rpm@drm-resources-equal:
- {shard-rkl}: [SKIP][29] ([fdo#109308]) -> [PASS][30]
[29]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-rkl-2/igt@[email protected]
[30]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-rkl-6/igt@[email protected]
* igt@i915_suspend@debugfs-reader:
- {shard-rkl}: [FAIL][31] ([fdo#103375]) -> [PASS][32]
[31]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-rkl-4/igt@[email protected]
[32]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-rkl-3/igt@[email protected]
* igt@kms_atomic@atomic_plane_damage:
- {shard-rkl}: [SKIP][33] ([i915#4098]) -> [PASS][34] +1 similar issue
[33]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-rkl-1/igt@kms_atomic@atomic_plane_damage.html
[34]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-rkl-6/igt@kms_atomic@atomic_plane_damage.html
* igt@kms_cursor_legacy@flip-vs-cursor-atomic:
- {shard-tglu}: [SKIP][35] ([i915#1845]) -> [PASS][36]
[35]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-tglu-6/igt@[email protected]
[36]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-tglu-8/igt@[email protected]
* igt@kms_cursor_legacy@flip-vs-cursor-atomic-transitions:
- shard-glk: [FAIL][37] ([i915#2346]) -> [PASS][38]
[37]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-glk1/igt@[email protected]
[38]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-glk8/igt@[email protected]
* igt@kms_frontbuffer_tracking@fbc-1p-primscrn-shrfb-msflip-blt:
- {shard-tglu}: [SKIP][39] ([i915#1849]) -> [PASS][40] +1 similar issue
[39]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-tglu-6/igt@[email protected]
[40]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-tglu-1/igt@[email protected]
* igt@kms_frontbuffer_tracking@psr-suspend:
- {shard-rkl}: [SKIP][41] ([i915#1849] / [i915#4098]) -> [PASS][42] +15 similar issues
[41]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-rkl-4/igt@[email protected]
[42]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-rkl-6/igt@[email protected]
* igt@kms_plane@plane-position-covered@pipe-a-planes:
- {shard-rkl}: [SKIP][43] ([i915#1849]) -> [PASS][44] +2 similar issues
[43]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-rkl-2/igt@kms_plane@[email protected]
[44]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-rkl-6/igt@kms_plane@[email protected]
* igt@kms_psr@cursor_mmap_cpu:
- {shard-rkl}: [SKIP][45] ([i915#1072]) -> [PASS][46] +2 similar issues
[45]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-rkl-2/igt@kms_psr@cursor_mmap_cpu.html
[46]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-rkl-6/igt@kms_psr@cursor_mmap_cpu.html
* igt@kms_rotation_crc@exhaust-fences:
- {shard-rkl}: [SKIP][47] ([i915#1845] / [i915#4098]) -> [PASS][48] +21 similar issues
[47]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-rkl-3/igt@[email protected]
[48]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-rkl-6/igt@[email protected]
* igt@kms_vblank@pipe-d-ts-continuation-modeset-rpm:
- {shard-tglu}: [SKIP][49] ([i915#1845] / [i915#7651]) -> [PASS][50] +1 similar issue
[49]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-tglu-6/igt@[email protected]
[50]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-tglu-8/igt@[email protected]
* igt@perf@gen12-mi-rpc:
- {shard-rkl}: [SKIP][51] ([fdo#109289]) -> [PASS][52]
[51]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-rkl-5/igt@[email protected]
[52]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-rkl-4/igt@[email protected]
* igt@perf_pmu@idle@rcs0:
- {shard-rkl}: [FAIL][53] ([i915#4349]) -> [PASS][54]
[53]: https://intel-gfx-ci.01.org/tree/drm-tip/IGT_7190/shard-rkl-3/igt@perf_pmu@[email protected]
[54]: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/shard-rkl-2/igt@perf_pmu@[email protected]
{name}: This element is suppressed. This means it is ignored when computing
the status of the difference (SUCCESS, WARNING, or FAILURE).
[IGT#2]: https://gitlab.freedesktop.org/drm/igt-gpu-tools/issues/2
[fdo#103375]: https://bugs.freedesktop.org/show_bug.cgi?id=103375
[fdo#109274]: https://bugs.freedesktop.org/show_bug.cgi?id=109274
[fdo#109279]: https://bugs.freedesktop.org/show_bug.cgi?id=109279
[fdo#109280]: https://bugs.freedesktop.org/show_bug.cgi?id=109280
[fdo#109289]: https://bugs.freedesktop.org/show_bug.cgi?id=109289
[fdo#109295]: https://bugs.freedesktop.org/show_bug.cgi?id=109295
[fdo#109302]: https://bugs.freedesktop.org/show_bug.cgi?id=109302
[fdo#109303]: https://bugs.freedesktop.org/show_bug.cgi?id=109303
[fdo#109307]: https://bugs.freedesktop.org/show_bug.cgi?id=109307
[fdo#109308]: https://bugs.freedesktop.org/show_bug.cgi?id=109308
[fdo#109309]: https://bugs.freedesktop.org/show_bug.cgi?id=109309
[fdo#109312]: https://bugs.freedesktop.org/show_bug.cgi?id=109312
[fdo#109313]: https://bugs.freedesktop.org/show_bug.cgi?id=109313
[fdo#109314]: https://bugs.freedesktop.org/show_bug.cgi?id=109314
[fdo#109315]: https://bugs.freedesktop.org/show_bug.cgi?id=109315
[fdo#109506]: https://bugs.freedesktop.org/show_bug.cgi?id=109506
[fdo#109642]: https://bugs.freedesktop.org/show_bug.cgi?id=109642
[fdo#110189]: https://bugs.freedesktop.org/show_bug.cgi?id=110189
[fdo#110723]: https://bugs.freedesktop.org/show_bug.cgi?id=110723
[fdo#111068]: https://bugs.freedesktop.org/show_bug.cgi?id=111068
[fdo#111614]: https://bugs.freedesktop.org/show_bug.cgi?id=111614
[fdo#111615]: https://bugs.freedesktop.org/show_bug.cgi?id=111615
[fdo#111644]: https://bugs.freedesktop.org/show_bug.cgi?id=111644
[fdo#111656]: https://bugs.freedesktop.org/show_bug.cgi?id=111656
[fdo#111825]: https://bugs.freedesktop.org/show_bug.cgi?id=111825
[fdo#111827]: https://bugs.freedesktop.org/show_bug.cgi?id=111827
[fdo#112054]: https://bugs.freedesktop.org/show_bug.cgi?id=112054
[fdo#112283]: https://bugs.freedesktop.org/show_bug.cgi?id=112283
[i915#1072]: https://gitlab.freedesktop.org/drm/intel/issues/1072
[i915#132]: https://gitlab.freedesktop.org/drm/intel/issues/132
[i915#1397]: https://gitlab.freedesktop.org/drm/intel/issues/1397
[i915#1825]: https://gitlab.freedesktop.org/drm/intel/issues/1825
[i915#1839]: https://gitlab.freedesktop.org/drm/intel/issues/1839
[i915#1845]: https://gitlab.freedesktop.org/drm/intel/issues/1845
[i915#1849]: https://gitlab.freedesktop.org/drm/intel/issues/1849
[i915#1937]: https://gitlab.freedesktop.org/drm/intel/issues/1937
[i915#2190]: https://gitlab.freedesktop.org/drm/intel/issues/2190
[i915#2346]: https://gitlab.freedesktop.org/drm/intel/issues/2346
[i915#2433]: https://gitlab.freedesktop.org/drm/intel/issues/2433
[i915#2434]: https://gitlab.freedesktop.org/drm/intel/issues/2434
[i915#2436]: https://gitlab.freedesktop.org/drm/intel/issues/2436
[i915#2437]: https://gitlab.freedesktop.org/drm/intel/issues/2437
[i915#2527]: https://gitlab.freedesktop.org/drm/intel/issues/2527
[i915#2575]: https://gitlab.freedesktop.org/drm/intel/issues/2575
[i915#2582]: https://gitlab.freedesktop.org/drm/intel/issues/2582
[i915#2587]: https://gitlab.freedesktop.org/drm/intel/issues/2587
[i915#2658]: https://gitlab.freedesktop.org/drm/intel/issues/2658
[i915#2672]: https://gitlab.freedesktop.org/drm/intel/issues/2672
[i915#2681]: https://gitlab.freedesktop.org/drm/intel/issues/2681
[i915#2705]: https://gitlab.freedesktop.org/drm/intel/issues/2705
[i915#280]: https://gitlab.freedesktop.org/drm/intel/issues/280
[i915#284]: https://gitlab.freedesktop.org/drm/intel/issues/284
[i915#2842]: https://gitlab.freedesktop.org/drm/intel/issues/2842
[i915#2846]: https://gitlab.freedesktop.org/drm/intel/issues/2846
[i915#2856]: https://gitlab.freedesktop.org/drm/intel/issues/2856
[i915#2920]: https://gitlab.freedesktop.org/drm/intel/issues/2920
[i915#3116]: https://gitlab.freedesktop.org/drm/intel/issues/3116
[i915#315]: https://gitlab.freedesktop.org/drm/intel/issues/315
[i915#3281]: https://gitlab.freedesktop.org/drm/intel/issues/3281
[i915#3282]: https://gitlab.freedesktop.org/drm/intel/issues/3282
[i915#3297]: https://gitlab.freedesktop.org/drm/intel/issues/3297
[i915#3299]: https://gitlab.freedesktop.org/drm/intel/issues/3299
[i915#3301]: https://gitlab.freedesktop.org/drm/intel/issues/3301
[i915#3318]: https://gitlab.freedesktop.org/drm/intel/issues/3318
[i915#3323]: https://gitlab.freedesktop.org/drm/intel/issues/3323
[i915#3359]: https://gitlab.freedesktop.org/drm/intel/issues/3359
[i915#3458]: https://gitlab.freedesktop.org/drm/intel/issues/3458
[i915#3469]: https://gitlab.freedesktop.org/drm/intel/issues/3469
[i915#3539]: https://gitlab.freedesktop.org/drm/intel/issues/3539
[i915#3546]: https://gitlab.freedesktop.org/drm/intel/issues/3546
[i915#3555]: https://gitlab.freedesktop.org/drm/intel/issues/3555
[i915#3558]: https://gitlab.freedesktop.org/drm/intel/issues/3558
[i915#3591]: https://gitlab.freedesktop.org/drm/intel/issues/3591
[i915#3637]: https://gitlab.freedesktop.org/drm/intel/issues/3637
[i915#3638]: https://gitlab.freedesktop.org/drm/intel/issues/3638
[i915#3689]: https://gitlab.freedesktop.org/drm/intel/issues/3689
[i915#3708]: https://gitlab.freedesktop.org/drm/intel/issues/3708
[i915#3734]: https://gitlab.freedesktop.org/drm/intel/issues/3734
[i915#3742]: https://gitlab.freedesktop.org/drm/intel/issues/3742
[i915#3840]: https://gitlab.freedesktop.org/drm/intel/issues/3840
[i915#3886]: https://gitlab.freedesktop.org/drm/intel/issues/3886
[i915#4036]: https://gitlab.freedesktop.org/drm/intel/issues/4036
[i915#4070]: https://gitlab.freedesktop.org/drm/intel/issues/4070
[i915#4077]: https://gitlab.freedesktop.org/drm/intel/issues/4077
[i915#4079]: https://gitlab.freedesktop.org/drm/intel/issues/4079
[i915#4083]: https://gitlab.freedesktop.org/drm/intel/issues/4083
[i915#4098]: https://gitlab.freedesktop.org/drm/intel/issues/4098
[i915#4103]: https://gitlab.freedesktop.org/drm/intel/issues/4103
[i915#4212]: https://gitlab.freedesktop.org/drm/intel/issues/4212
[i915#4213]: https://gitlab.freedesktop.org/drm/intel/issues/4213
[i915#426]: https://gitlab.freedesktop.org/drm/intel/issues/426
[i915#4270]: https://gitlab.freedesktop.org/drm/intel/issues/4270
[i915#4275]: https://gitlab.freedesktop.org/drm/intel/issues/4275
[i915#4281]: https://gitlab.freedesktop.org/drm/intel/issues/4281
[i915#4349]: https://gitlab.freedesktop.org/drm/intel/issues/4349
[i915#4387]: https://gitlab.freedesktop.org/drm/intel/issues/4387
[i915#4538]: https://gitlab.freedesktop.org/drm/intel/issues/4538
[i915#4565]: https://gitlab.freedesktop.org/drm/intel/issues/4565
[i915#4613]: https://gitlab.freedesktop.org/drm/intel/issues/4613
[i915#4771]: https://gitlab.freedesktop.org/drm/intel/issues/4771
[i915#4812]: https://gitlab.freedesktop.org/drm/intel/issues/4812
[i915#4818]: https://gitlab.freedesktop.org/drm/intel/issues/4818
[i915#4833]: https://gitlab.freedesktop.org/drm/intel/issues/4833
[i915#4852]: https://gitlab.freedesktop.org/drm/intel/issues/4852
[i915#4859]: https://gitlab.freedesktop.org/drm/intel/issues/4859
[i915#4860]: https://gitlab.freedesktop.org/drm/intel/issues/4860
[i915#4873]: https://gitlab.freedesktop.org/drm/intel/issues/4873
[i915#4958]: https://gitlab.freedesktop.org/drm/intel/issues/4958
[i915#4983]: https://gitlab.freedesktop.org/drm/intel/issues/4983
[i915#5115]: https://gitlab.freedesktop.org/drm/intel/issues/5115
[i915#5176]: https://gitlab.freedesktop.org/drm/intel/issues/5176
[i915#5213]: https://gitlab.freedesktop.org/drm/intel/issues/5213
[i915#5235]: https://gitlab.freedesktop.org/drm/intel/issues/5235
[i915#5286]: https://gitlab.freedesktop.org/drm/intel/issues/5286
[i915#5288]: https://gitlab.freedesktop.org/drm/intel/issues/5288
[i915#5289]: https://gitlab.freedesktop.org/drm/intel/issues/5289
[i915#5325]: https://gitlab.freedesktop.org/drm/intel/issues/5325
[i915#533]: https://gitlab.freedesktop.org/drm/intel/issues/533
[i915#5439]: https://gitlab.freedesktop.org/drm/intel/issues/5439
[i915#5461]: https://gitlab.freedesktop.org/drm/intel/issues/5461
[i915#5563]: https://gitlab.freedesktop.org/drm/intel/issues/5563
[i915#5723]: https://gitlab.freedesktop.org/drm/intel/issues/5723
[i915#6095]: https://gitlab.freedesktop.org/drm/intel/issues/6095
[i915#6117]: https://gitlab.freedesktop.org/drm/intel/issues/6117
[i915#6230]: https://gitlab.freedesktop.org/drm/intel/issues/6230
[i915#6247]: https://gitlab.freedesktop.org/drm/intel/issues/6247
[i915#6248]: https://gitlab.freedesktop.org/drm/intel/issues/6248
[i915#6259]: https://gitlab.freedesktop.org/drm/intel/issues/6259
[i915#6268]: https://gitlab.freedesktop.org/drm/intel/issues/6268
[i915#6335]: https://gitlab.freedesktop.org/drm/intel/issues/6335
[i915#6355]: https://gitlab.freedesktop.org/drm/intel/issues/6355
[i915#6412]: https://gitlab.freedesktop.org/drm/intel/issues/6412
[i915#6433]: https://gitlab.freedesktop.org/drm/intel/issues/6433
[i915#6493]: https://gitlab.freedesktop.org/drm/intel/issues/6493
[i915#6497]: https://gitlab.freedesktop.org/drm/intel/issues/6497
[i915#6524]: https://gitlab.freedesktop.org/drm/intel/issues/6524
[i915#658]: https://gitlab.freedesktop.org/drm/intel/issues/658
[i915#6590]: https://gitlab.freedesktop.org/drm/intel/issues/6590
[i915#6621]: https://gitlab.freedesktop.org/drm/intel/issues/6621
[i915#6768]: https://gitlab.freedesktop.org/drm/intel/issues/6768
[i915#6944]: https://gitlab.freedesktop.org/drm/intel/issues/6944
[i915#6946]: https://gitlab.freedesktop.org/drm/intel/issues/6946
[i915#6953]: https://gitlab.freedesktop.org/drm/intel/issues/6953
[i915#7052]: https://gitlab.freedesktop.org/drm/intel/issues/7052
[i915#7116]: https://gitlab.freedesktop.org/drm/intel/issues/7116
[i915#7118]: https://gitlab.freedesktop.org/drm/intel/issues/7118
[i915#7128]: https://gitlab.freedesktop.org/drm/intel/issues/7128
[i915#7294]: https://gitlab.freedesktop.org/drm/intel/issues/7294
[i915#7561]: https://gitlab.freedesktop.org/drm/intel/issues/7561
[i915#7651]: https://gitlab.freedesktop.org/drm/intel/issues/7651
[i915#7697]: https://gitlab.freedesktop.org/drm/intel/issues/7697
[i915#7701]: https://gitlab.freedesktop.org/drm/intel/issues/7701
[i915#7707]: https://gitlab.freedesktop.org/drm/intel/issues/7707
[i915#7711]: https://gitlab.freedesktop.org/drm/intel/issues/7711
[i915#7742]: https://gitlab.freedesktop.org/drm/intel/issues/7742
[i915#7756]: https://gitlab.freedesktop.org/drm/intel/issues/7756
[i915#7828]: https://gitlab.freedesktop.org/drm/intel/issues/7828
[i915#7949]: https://gitlab.freedesktop.org/drm/intel/issues/7949
[i915#7957]: https://gitlab.freedesktop.org/drm/intel/issues/7957
[i915#7981]: https://gitlab.freedesktop.org/drm/intel/issues/7981
[i915#8150]: https://gitlab.freedesktop.org/drm/intel/issues/8150
[i915#8152]: https://gitlab.freedesktop.org/drm/intel/issues/8152
[i915#8154]: https://gitlab.freedesktop.org/drm/intel/issues/8154
[i915#8211]: https://gitlab.freedesktop.org/drm/intel/issues/8211
[i915#8228]: https://gitlab.freedesktop.org/drm/intel/issues/8228
[i915#8275]: https://gitlab.freedesktop.org/drm/intel/issues/8275
[i915#8282]: https://gitlab.freedesktop.org/drm/intel/issues/8282
Build changes
-------------
* CI: CI-20190529 -> None
* IGT: IGT_7190 -> IGTPW_8588
CI-20190529: 20190529
CI_DRM_12836: b36bbf575b73703bed04f509381b0cc2e752845d @ git://anongit.freedesktop.org/gfx-ci/linux
IGTPW_8588: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/index.html
IGT_7190: f9d49501eaaadd39ae471094bc45a76a1ff93e42 @ https://gitlab.freedesktop.org/drm/igt-gpu-tools.git
== Logs ==
For more details see: https://intel-gfx-ci.01.org/tree/drm-tip/IGTPW_8588/index.html