Skip to content

Commit a1f7d86

Browse files
Merge pull request #968 from siystar/waitstages
[FIXED] TransferTask semaphore wait stages
2 parents fa9f066 + e64eaa4 commit a1f7d86

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/vsg/app/TransferTask.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ VkResult TransferTask::transferDynamicData()
360360

361361
if (!semaphore)
362362
{
363-
semaphore = Semaphore::create(device, VK_PIPELINE_STAGE_TRANSFER_BIT);
363+
semaphore = Semaphore::create(device, VK_PIPELINE_STAGE_ALL_COMMANDS_BIT);
364364
}
365365

366366
VkResult result = VK_SUCCESS;
@@ -395,7 +395,7 @@ VkResult TransferTask::transferDynamicData()
395395

396396
vkEndCommandBuffer(vk_commandBuffer);
397397

398-
// if no regions to copy have been found then commandBuffer will be empty so no need to submit it to queue and use the associated single semaphore
398+
// if no regions to copy have been found then commandBuffer will be empty so no need to submit it to queue and signal the associated semaphore
399399
if (offset > 0)
400400
{
401401
// submit the transfer commands

0 commit comments

Comments
 (0)