diff options
-rw-r--r-- | lib/igt_fb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/igt_fb.c b/lib/igt_fb.c index 01936dd7..1dfa958a 100644 --- a/lib/igt_fb.c +++ b/lib/igt_fb.c @@ -350,7 +350,7 @@ static int create_bo_for_fb(int fd, int width, int height, if (offsets) memset(offsets, 0, ARRAY_SIZE(format->plane_bpp) * sizeof(*offsets)); - if (tiling || size || stride || format->planes > 1) { + if (tiling || size || stride || igt_format_is_yuv(format->drm_id)) { unsigned calculated_size, calculated_stride; if (format->planes > 1) |