if (f->drm_id == drm_format)
return f->cairo_id;
- igt_fail(101);
+ igt_assert_f(0, "can't find a cairo format for %08x (%s)\n",
+ drm_format, igt_format_str(drm_format));
}
static void destroy_cairo_surface__gtt(void *arg)
if (f->bpp == bpp && f->depth == depth)
return f->drm_id;
- igt_fail(101);
+
+ igt_assert_f(0, "can't find drm format with bpp=%d, depth=%d\n", bpp,
+ depth);
}
/**
if (f->drm_id == drm_format)
return f->bpp;
- igt_fail(101);
+ igt_assert_f(0, "can't find a bpp format for %08x (%s)\n",
+ drm_format, igt_format_str(drm_format));
}
/**