GNOME Bugzilla – Bug 795707
msdk: enc: Add Dmabuf Export support
Last modified: 2018-05-02 21:56:08 UTC
Add dmabuf-export support in msdk encoder similar to the msdkvpp. Currently, we only can support dmabuf-export through DMABufCapsfeatures. Support for dmabuf-import should be handled here: https://bugzilla.gnome.org/show_bug.cgi?id=794817
Created attachment 371588 [details] [review] Add dmabuf-export support using CapsFeatures
Created attachment 371631 [details] [review] msdk: enc: enable dmabuf-export The first patch had a code block to create a new pool for copying the incoming buffers if a) dmabuf-capsfeature negotiated and b) upstream rejected the msdk proposed pool. This won't work since the dmabuf backed msdk buffers are not mappable. One possible solution could be to keep the internal pool based on video memory (not-dmabuf) and propose a dmabuf-backed pool in propose_allocation. For now, it just errors out if the above scenario occurs.
Review of attachment 371631 [details] [review]: pushed as cb1eb650c6826e49ca99965824dd079842c61400