GNOME Bugzilla – Bug 768703
kmssink: Add tile format support
Last modified: 2018-11-03 13:53:18 UTC
This is a bit tricky. Tiled format in DRM are set with two values. The first is the format family (like NV12), and then you add a modifier that specify the transformation. The main issue right now is that I don't see anything in DRM to probe the availability of each modifiers for each formats.
Created attachment 331284 [details] [review] WIP: kmssink: Add support for tiled formats This is a work-in-progress, to be useful, we need a way to probe if the tile modifier is supported or not by the HW. We could possibly do a trial and error.
I just found that intel kms driver (using a minnowboard) also requires tiled dmabuf buffers to import them. So, we required this new version of addfb with modifiers.
Ok, I can split this patch (I should have anyway).
Ok, DRM kernel interface now implements DRM_IOCTL_MODE_GETPLANE2 which list the supported modifiers. In libdrm 2.4.74+ there is drmModeGetPlane2 wrapper. That's should unblock this work. https://patchwork.kernel.org/patch/9482395/
-- GitLab Migration Automatic Message -- This bug has been migrated to freedesktop.org's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/issues/409.