Re: [PATCH weston v2 1/1] simple-dmabuf-drm: support DRM_FORMAT_LINEAR for NV12 as well

2018-05-29 Thread Guido Günther
Hi, On Tue, May 29, 2018 at 11:44:36AM +0300, Pekka Paalanen wrote: > On Mon, 28 May 2018 17:41:57 +0200 > Guido Günther wrote: > > > This makes --import-format=NV12 testable on e.g. intel > > > > We only set nv12_format_found to true if we found that format and at > > least one understood modif

Re: [PATCH weston v2 1/1] simple-dmabuf-drm: support DRM_FORMAT_LINEAR for NV12 as well

2018-05-29 Thread Pekka Paalanen
On Mon, 28 May 2018 17:41:57 +0200 Guido Günther wrote: > This makes --import-format=NV12 testable on e.g. intel > > We only set nv12_format_found to true if we found that format and at > least one understood modifier. Store modifier verbatim instead of using > a boolean flag. Last advertised an

[PATCH weston v2 1/1] simple-dmabuf-drm: support DRM_FORMAT_LINEAR for NV12 as well

2018-05-28 Thread Guido Günther
This makes --import-format=NV12 testable on e.g. intel We only set nv12_format_found to true if we found that format and at least one understood modifier. Store modifier verbatim instead of using a boolean flag. Last advertised and supported modifier currently wins. The NV12 DRM_FORMAT_LINEAR ima