cudaupload,cudadownload: Use shared GstD3D11Device context if possible
authorSeungha Yang <seungha@centricular.com>
Mon, 12 Sep 2022 16:02:55 +0000 (01:02 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 13 Sep 2022 16:40:51 +0000 (16:40 +0000)
commit7ea3c555495dd63f3981c74069de9fae5b5947ae
tree08d892b90d316a611510378cdc1e420541919550
parent219bb769a29a595460648b1f042c5ee70d5c3bd8
cudaupload,cudadownload: Use shared GstD3D11Device context if possible

Handle d3d11 device context in set_context() method with
additional device compatibility check so that only NVIDIA GPU
associated d3d11 device can be configured in the element.
And clear old d3d11 device per set_info() for d3d11 device to be
updated as well.

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3018>
subprojects/gst-plugins-bad/sys/nvcodec/gstcudamemorycopy.c