From 331522210f1c1a2bbc9a87834bb1776f14769438 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sat, 16 Mar 2024 02:00:31 +0900 Subject: [PATCH] d3d12commandqueue: Allow empty command list Just increase fence value and signal the queue in that case Part-of: --- subprojects/gst-plugins-bad/sys/d3d12/gstd3d12commandqueue.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/subprojects/gst-plugins-bad/sys/d3d12/gstd3d12commandqueue.cpp b/subprojects/gst-plugins-bad/sys/d3d12/gstd3d12commandqueue.cpp index 3ee4cafff0..d1246053c7 100644 --- a/subprojects/gst-plugins-bad/sys/d3d12/gstd3d12commandqueue.cpp +++ b/subprojects/gst-plugins-bad/sys/d3d12/gstd3d12commandqueue.cpp @@ -224,7 +224,8 @@ gst_d3d12_command_queue_execute_command_lists (GstD3D12CommandQueue * queue, std::lock_guard < std::mutex > lk (priv->execute_lock); priv->fence_val++; - priv->cq->ExecuteCommandLists (num_command_lists, command_lists); + if (num_command_lists) + priv->cq->ExecuteCommandLists (num_command_lists, command_lists); hr = priv->cq->Signal (priv->fence.Get (), priv->fence_val); if (FAILED (hr)) { GST_ERROR_OBJECT (queue, "Signal failed");