[Intel-gfx] [PATCH i-g-t 4/6] tests/kms_panel_fitting: Use igt_cairo_image_surface_create_from_png_file()

Petri Latvala petri.latvala at intel.com
Fri Sep 22 09:53:56 UTC 2017


On Thu, Sep 21, 2017 at 05:39:31PM +0300, Ville Syrjala wrote:
> From: Ville Syrjälä <ville.syrjala at linux.intel.com>
> 
> Switch to using igt_cairo_image_surface_create_from_png_file() over the
> raw cairo version so that the test can actually find the image file
> no matter where we run it from.
> 
> Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>


Reviewed-by: Petri Latvala <petri.latvala at intel.com>


> ---
>  tests/kms_panel_fitting.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/tests/kms_panel_fitting.c b/tests/kms_panel_fitting.c
> index e145a2dfc970..5266862a70cf 100644
> --- a/tests/kms_panel_fitting.c
> +++ b/tests/kms_panel_fitting.c
> @@ -159,7 +159,7 @@ static void test_panel_fitting(data_t *d)
>  		native_mode = *mode;
>  
>  		/* allocate fb2 with image size */
> -		image = cairo_image_surface_create_from_png(FILE_NAME);
> +		image = igt_cairo_image_surface_create_from_png(FILE_NAME);
>  		igt_assert(cairo_surface_status(image) == CAIRO_STATUS_SUCCESS);
>  		d->image_w = cairo_image_surface_get_width(image);
>  		d->image_h = cairo_image_surface_get_height(image);
> -- 
> 2.13.5
> 
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx


More information about the Intel-gfx mailing list