]> git.sesse.net Git - ffmpeg/commit
hwcontext_vaapi: Don't require a render node when deriving from DRM
authorMark Thompson <sw@jkqxz.net>
Fri, 28 Aug 2020 22:15:41 +0000 (23:15 +0100)
committerMark Thompson <sw@jkqxz.net>
Mon, 31 Aug 2020 20:42:14 +0000 (21:42 +0100)
commit303d252a4b4c104685dc46152c26abaf7ff2ce60
tree566d7962e7d2eb8ccc18cc01b37c2582f2093ee4
parent04d335e4365812b8db1d02ac59b5e3a51cc0f425
hwcontext_vaapi: Don't require a render node when deriving from DRM

The V4L2 driver does not actually have an associated DRM device at all, so
users work around the requirement by giving libva an unrelated display-only
device instead (which is fine, because it doesn't actually do anything with
that device).  This was broken by bc9b6358fb7315c0173de322472641766f6289da
forcing a render node, because the display-only device did not have an
associated render node to use.  Fix that by just passing through the
original non-render DRM fd if we can't find a render node.

Reported-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
Tested-by: Paul Kocialkowski <paul.kocialkowski@bootlin.com>
libavutil/hwcontext_vaapi.c