From 0e2045f533387bc41bc78957109262f1192b8adb Mon Sep 17 00:00:00 2001 From: Ville Syrjälä Date: Fri, 28 Jun 2019 20:44:15 +0300 Subject: lib/igt_fb: Allow creating yuv fbs with different encodings/ranges MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Pass the color encoding/range to igt_create_fb_with_bo_size() so that tests are able to generate fbs with various encodings/ranges. v2: Drop the _full() variants of th fb create funcs (Nicholas) Cc: Uma Shankar Reviewed-by: Nicholas Kazlauskas #v1 Reviewed-by: Uma Shankar #v1 Signed-off-by: Ville Syrjälä --- tests/kms_frontbuffer_tracking.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests/kms_frontbuffer_tracking.c') diff --git a/tests/kms_frontbuffer_tracking.c b/tests/kms_frontbuffer_tracking.c index 1037faf8..c788b59e 100644 --- a/tests/kms_frontbuffer_tracking.c +++ b/tests/kms_frontbuffer_tracking.c @@ -491,8 +491,10 @@ static void create_fb(enum pixel_format pformat, int width, int height, igt_calc_fb_size(drm.fd, width, height, format, tiling_for_size, &size, &stride); - igt_create_fb_with_bo_size(drm.fd, width, height, format, tiling, fb, - size, stride); + igt_create_fb_with_bo_size(drm.fd, width, height, format, tiling, + IGT_COLOR_YCBCR_BT709, + IGT_COLOR_YCBCR_LIMITED_RANGE, + fb, size, stride); } static uint32_t pick_color(struct igt_fb *fb, enum color ecolor) -- cgit v1.2.3