[igt-dev] [PATCH i-g-t] lib/igt_fb: Fix merge of preliminary patches for clearing YUV

Paul Kocialkowski paul.kocialkowski at bootlin.com
Tue Feb 5 13:22:05 UTC 2019


Preliminary patches for the YUV testing series were broken without
subsequent patches that fix them when moving things around.

Signed-off-by: Paul Kocialkowski <paul.kocialkowski at bootlin.com>
---
 lib/igt_fb.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/lib/igt_fb.c b/lib/igt_fb.c
index d69c3fb2d38d..5d8c187a9ac9 100644
--- a/lib/igt_fb.c
+++ b/lib/igt_fb.c
@@ -548,7 +548,9 @@ static int create_bo_for_fb(struct igt_fb *fb)
 			gem_set_tiling(fd, fb->gem_handle,
 				       igt_fb_mod_to_tiling(fb->tiling),
 				       fb->strides[0]);
-			clear_yuv_buffer(fd);
+
+			if (igt_format_is_yuv(fb->drm_format))
+				clear_yuv_buffer(fb);
 
 			return fb->gem_handle;
 		} else {
-- 
2.20.1



More information about the igt-dev mailing list