mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-23 10:11:08 +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,6 +224,7 @@ gst_d3d12_command_queue_execute_command_lists (GstD3D12CommandQueue * queue,
|
||||||
|
|
||||||
std::lock_guard < std::mutex > lk (priv->execute_lock);
|
std::lock_guard < std::mutex > lk (priv->execute_lock);
|
||||||
priv->fence_val++;
|
priv->fence_val++;
|
||||||
|
if (num_command_lists)
|
||||||
priv->cq->ExecuteCommandLists (num_command_lists, command_lists);
|
priv->cq->ExecuteCommandLists (num_command_lists, command_lists);
|
||||||
hr = priv->cq->Signal (priv->fence.Get (), priv->fence_val);
|
hr = priv->cq->Signal (priv->fence.Get (), priv->fence_val);
|
||||||
if (FAILED (hr)) {
|
if (FAILED (hr)) {
|
||||||
|
|
Loading…
Reference in a new issue