media/gpu/v4l2/tegra: return dummy, valid FDs when exporting DMAbuf
crrev.com/c/1982499 started passing NativePixmapHandles to the GL import methods instead of raw DMAbuf FDs without layout information. But creating a NativePixmapHandles involves duplicating the FDs of a frame ; something that would fail on Tegra which passed invalid FDs that were to be ignored during import. Fix this by returning a dummy FD created from pipe() instead of an invalid one. The dummy FD is not any more useful, but it can be duplicated safely. BUG=b:148105252 TEST=video_decode_accelerator_tests passing on nyan_big. Change-Id: Ifda5f98d8383f4883494d13708a45783149810f8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2016817Reviewed-by:Miguel Casas <mcasas@chromium.org> Reviewed-by:
Hirokazu Honda <hiroh@chromium.org> Commit-Queue: Alexandre Courbot <acourbot@chromium.org> Cr-Commit-Position: refs/heads/master@{#735334}
Showing
Please register or sign in to comment