diff --git a/src/freedreno/vulkan/tu_drm.c b/src/freedreno/vulkan/tu_drm.c index fb3bb194338..ca1403fd4b9 100644 --- a/src/freedreno/vulkan/tu_drm.c +++ b/src/freedreno/vulkan/tu_drm.c @@ -746,13 +746,12 @@ tu_QueueSubmit(VkQueue _queue, int ret = drmCommandWriteRead(queue->device->physical_device->local_fd, DRM_MSM_GEM_SUBMIT, &req, sizeof(req)); + mtx_unlock(&queue->device->bo_mutex); if (ret) { return tu_device_set_lost(queue->device, "submit failed: %s\n", strerror(errno)); } - mtx_unlock(&queue->device->bo_mutex); - tu_semaphores_remove_temp(queue->device, pSubmits[i].pWaitSemaphores, pSubmits[i].waitSemaphoreCount); if (last_submit) {