mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 02:01:12 +00:00
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:
parent
3e912a2214
commit
331522210f
1 changed files with 2 additions and 1 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue