diff options
Diffstat (limited to 'lib/igt_fb.c')
-rw-r--r-- | lib/igt_fb.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/igt_fb.c b/lib/igt_fb.c index dea390b06..6fe0d0847 100644 --- a/lib/igt_fb.c +++ b/lib/igt_fb.c @@ -596,6 +596,9 @@ static int create_bo_for_fb(struct igt_fb *fb) fb->gem_handle = kmstest_dumb_create(fd, fb->width, fb->height, bpp, strides, &fb->size); + if (igt_format_is_yuv(fb->drm_format)) + clear_yuv_buffer(fb); + return fb->gem_handle; } |