mirror of
https://gitlab.winehq.org/wine/vkd3d.git
synced 2025-01-28 13:05:02 -08:00
vkd3d: Unlock mutex in error case in d3d12_command_queue_CopyTileMappings.
This commit is contained in:
parent
90bcc6691d
commit
49d5aecaa7
Notes:
Alexandre Julliard
2024-01-08 22:21:37 +01:00
Approved-by: Giovanni Mascellani (@giomasce) Approved-by: Henri Verbeet (@hverbeet) Approved-by: Alexandre Julliard (@julliard) Merge-Request: https://gitlab.winehq.org/wine/vkd3d/-/merge_requests/542
@ -6512,7 +6512,7 @@ static void STDMETHODCALLTYPE d3d12_command_queue_CopyTileMappings(ID3D12Command
|
||||
if (!(op = d3d12_command_queue_op_array_require_space(&command_queue->op_queue)))
|
||||
{
|
||||
ERR("Failed to add op.\n");
|
||||
return;
|
||||
goto unlock_mutex;
|
||||
}
|
||||
op->opcode = VKD3D_CS_OP_COPY_MAPPINGS;
|
||||
op->u.copy_mappings.dst_resource = dst_resource_impl;
|
||||
@ -6524,6 +6524,7 @@ static void STDMETHODCALLTYPE d3d12_command_queue_CopyTileMappings(ID3D12Command
|
||||
|
||||
d3d12_command_queue_submit_locked(command_queue);
|
||||
|
||||
unlock_mutex:
|
||||
vkd3d_mutex_unlock(&command_queue->op_mutex);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user