simple-dmabuf-drm: support DRM_FORMAT_LINEAR for NV12 as well

Graphics / Wayland / Weston - Guido Günther [sigxcpu.org] - 29 May 2018 08:43 EDT

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 image should be green in the upper left corner and white in the lower right.

da188835 simple-dmabuf-drm: support DRM_FORMAT_LINEAR for NV12 as well
clients/simple-dmabuf-drm.c | 55 +++++++++++++++++++++++++++++++--------------
1 file changed, 38 insertions(+), 17 deletions(-)

Upstream: cgit.freedesktop.org


  • Share