[igt-dev] [PATCH i-g-t 1/6] tests/kms_async_flips: Add missing igt_put_cairo_ctx()

Murthy, Arun R arun.r.murthy at intel.com
Thu Feb 2 11:03:37 UTC 2023


> -----Original Message-----
> From: Ville Syrjala <ville.syrjala at linux.intel.com>
> Sent: Tuesday, January 31, 2023 5:37 PM
> To: igt-dev at lists.freedesktop.org
> Cc: Murthy, Arun R <arun.r.murthy at intel.com>
> Subject: [PATCH i-g-t 1/6] tests/kms_async_flips: Add missing
> igt_put_cairo_ctx()
> 
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> 
> Remeber to call igt_put_cairo_ctx() after rendering to make sure the results
> actually end up in the framebuffer (in case the rendering happens to a
> temporary buffer and there needs to be a copy back at the end).
> 
> Cc: Arun R Murthy <arun.r.murthy at intel.com>
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
> ---
Reviewed-by: Arun R Murthy <arun.r.murthy at intel.com>

Thanks and Regards,
Arun R Murthy
-------------------
>  tests/kms_async_flips.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/kms_async_flips.c b/tests/kms_async_flips.c index
> 7cb71f6b441a..89e431ac32e2 100644
> --- a/tests/kms_async_flips.c
> +++ b/tests/kms_async_flips.c
> @@ -134,6 +134,7 @@ static void make_fb(data_t *data, struct igt_fb *fb,
> 
>  	cr = igt_get_cairo_ctx(data->drm_fd, fb);
>  	igt_paint_color_rand(cr, rec_width * 2 + rec_width * index, height /
> 4, rec_width, height / 2);
> +	igt_put_cairo_ctx(cr);
>  }
> 
>  static void require_monotonic_timestamp(int fd)
> --
> 2.39.1



More information about the igt-dev mailing list