vulkan: Use right check for waiting on external image semaphore

Commit 3aa6c27c26 changed the initial layout of imported dmabuf images,
but did not adapt this check.
This commit is contained in:
Benjamin Otte
2024-07-17 22:18:08 +02:00
parent ad218f0786
commit 300639e537

View File

@@ -1440,7 +1440,7 @@ gsk_vulkan_image_transition (GskVulkanImage *self,
self->vk_access == access)
return;
if (self->vk_pipeline_stage == VK_IMAGE_LAYOUT_UNDEFINED &&
if (self->vk_pipeline_stage == VK_IMAGE_LAYOUT_GENERAL &&
self->vk_semaphore)
{
gsk_vulkan_semaphores_add_wait (semaphores, self->vk_semaphore, stage);