[igt-dev] [PATCH i-g-t v5 08/13] igt: fb: Clear YUV dumb buffers
Lyude Paul
lyude at redhat.com
Tue Jan 29 20:08:41 UTC 2019
Reviewed-by: Lyude Paul <lyude at redhat.com>
On Fri, 2019-01-25 at 15:58 +0100, Maxime Ripard wrote:
> YUV dumb buffers, just like i915 GEM buffers also need to be cleared once
> allocated. Make sure it happens.
>
> Reviewed-by: Paul Kocialkowski <paul.kocialkowski at bootlin.com>
> Signed-off-by: Maxime Ripard <maxime.ripard at bootlin.com>
> ---
> lib/igt_fb.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/lib/igt_fb.c b/lib/igt_fb.c
> index 048d274e5d36..65aa99ecf7ae 100644
> --- a/lib/igt_fb.c
> +++ b/lib/igt_fb.c
> @@ -593,6 +593,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;
> }
>
--
Cheers,
Lyude Paul
More information about the igt-dev
mailing list