[FFmpeg-devel] [PATCH 4/7] hwcontext_opencl: Add support for mapping DRM objects to Beignet

Mark Thompson sw at jkqxz.net
Mon Mar 12 14:30:25 EET 2018


On 12/03/18 00:22, Mark Thompson wrote:
> On 11/03/18 23:59, Rostislav Pehlivanov wrote:
>> On 11 March 2018 at 22:41, Mark Thompson <sw at jkqxz.net> wrote:
>>
>>> Also use that to support mapping VAAPI to Beignet.
>>> ---
>>>  configure                    |  16 +--
>>>  libavutil/hwcontext_opencl.c | 264 +++++++++++++++++++++---------
>>> -------------
>>>  2 files changed, 138 insertions(+), 142 deletions(-)
>>>
>>> ...
>>>
>>
>> Doesn't seem to work, at least on my machine:
>> DRM frame layer 0 plane 0 is not representable in OpenCL: -22
> 
> What driver and input/output formats are you using?  What are the versions of all the relevant components, so I can maybe try to reproduce it?  (beignet, i965, libva, mesa, libdrm, .. others?)

Fixed in discussion on IRC - BGR0 from kmsgrab is not a valid format for OpenCL because of the padding, using BGRA instead works.

- Mark


More information about the ffmpeg-devel mailing list