[PATCH weston v4] simple-dmabuf-drm: nv12: properly fill Y plane

Daniel Stone daniel at fooishbar.org
Fri Jul 13 15:16:05 UTC 2018


Hi Emilio,

On Thu, 12 Jul 2018 at 12:46, Emilio Pozuelo Monfort <pochu27 at gmail.com> wrote:
> @@ -147,7 +147,7 @@ fill_content(struct buffer *my_buf, uint64_t modifier)
>                         for (y = 0; y < my_buf->height; y++) {
>                                 pix8 = my_buf->mmap + y * my_buf->stride;
>                                 for (x = 0; x < my_buf->width; x++)
> -                                       *pix8++ = x % 0xff;
> +                                       *pix8++ = x % 256;

This somehow ended up also squashed into the GBM rewrite. I've pulled
it out of that patch.

Cheers,
Daniel


More information about the wayland-devel mailing list