d3d11memory: Protect against concurrent access from GPU and CPU to staging texture
authorSeungha Yang <seungha@centricular.com>
Thu, 5 May 2022 16:46:36 +0000 (01:46 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Thu, 5 May 2022 18:59:05 +0000 (18:59 +0000)
commit47ff41bcd2519257b275b191cd93284269344bd8
tree8d6e89a289a68c8d434e63f9a4aff15bacf2a1f0
parente0a9a73adfc8b89408517d85d7322a764d4d8000
d3d11memory: Protect against concurrent access from GPU and CPU to staging texture

Staging texture does not allow GPU access while it's CPU mapped.
But because we cannot block concurrent READ access by GstMemory design,
additional staging texture is still required.

Fixes: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1182
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2375>
subprojects/gst-plugins-bad/gst-libs/gst/d3d11/gstd3d11memory.cpp