d3d12commandqueue: Allow empty command list

Just increase fence value and signal the queue in that case

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/6395>
This commit is contained in:
Seungha Yang 2024-03-16 02:00:31 +09:00 committed by GStreamer Marge Bot
parent 3e912a2214
commit 331522210f

View file

@ -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");