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

Paul Kocialkowski
2019-02-05T13:23:03Z

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@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