va: allocator: dmabuf: Use GstVaSurfaceCopy, if possible.
authorVíctor Manuel Jáquez Leal <vjaquez@igalia.com>
Wed, 6 Oct 2021 13:20:50 +0000 (15:20 +0200)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Sun, 10 Oct 2021 17:03:29 +0000 (17:03 +0000)
commit35575e7b11a32ff39993e2cd35da2fbc9659da3f
treeb1923e6073739085048c18196afed14af6667e84
parentcf751d54a908d4bee69b79d0917f7628ebcfbf0d
va: allocator: dmabuf: Use GstVaSurfaceCopy, if possible.

If dmabuf-based buffer to copy contains only one memory, and there are
memories available in the allocator's pool, it's possible a fast
memory copy using GstVaSurfaceCopy, regardless the drm modifier.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1023>
subprojects/gst-plugins-bad/sys/va/gstvaallocator.c