summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVille Syrjälä <ville.syrjala@linux.intel.com>2017-09-21 15:42:15 +0300
committerVille Syrjälä <ville.syrjala@linux.intel.com>2017-09-22 15:44:30 +0300
commit435fea5017d7a655ddb13f7897bfd628c9a5e6fb (patch)
treeb5b81b04efd598eba413c7a9776891b57b8a02e1
parent75f320c5bda480f4ea1501577247d6a807ed3bff (diff)
tests/kms_panel_fitting: Use igt_cairo_image_surface_create_from_png_file()
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@linux.intel.com> Reviewed-by: Petri Latvala <petri.latvala@intel.com>
-rw-r--r--tests/kms_panel_fitting.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/kms_panel_fitting.c b/tests/kms_panel_fitting.c
index e145a2df..5266862a 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);