From 3e08cdeebe21886656144913e962c56fb0eefd3c Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sat, 27 Apr 2024 20:10:53 +0900 Subject: [PATCH] d3d12memory: Do not wait external fence on map() Only wait for external fence if upload or download is required. Waiting for external fence in case of d3d12 mapping is caller's responsibility Part-of: --- .../gst-plugins-bad/gst-libs/gst/d3d12/gstd3d12memory.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/subprojects/gst-plugins-bad/gst-libs/gst/d3d12/gstd3d12memory.cpp b/subprojects/gst-plugins-bad/gst-libs/gst/d3d12/gstd3d12memory.cpp index f929a999d9..3144645a32 100644 --- a/subprojects/gst-plugins-bad/gst-libs/gst/d3d12/gstd3d12memory.cpp +++ b/subprojects/gst-plugins-bad/gst-libs/gst/d3d12/gstd3d12memory.cpp @@ -550,8 +550,6 @@ gst_d3d12_memory_map_full (GstMemory * mem, GstMapInfo * info, gsize maxsize) GstMapFlags flags = info->flags; std::lock_guard < std::mutex > lk (priv->lock); - gst_d3d12_memory_set_external_fence_unlocked (dmem, nullptr, 0); - if ((flags & GST_MAP_D3D12) != 0) { gst_d3d12_memory_upload (dmem);