diff options
| author | Eleni Maria Stea <elene.mst@gmail.com> | 2021-10-02 23:32:06 +0300 |
|---|---|---|
| committer | Tony Barbour <tony@lunarg.com> | 2021-10-08 15:22:16 -0600 |
| commit | e8b24f02d17dde8ba703353aa21ed5b08ca32f3b (patch) | |
| tree | 46db073fd3ca967eb95a259838b18aa7d9dcd508 /cube | |
| parent | 6ca43559e0eb9b23e59e9a978adf58cc6214d20f (diff) | |
| download | usermoji-e8b24f02d17dde8ba703353aa21ed5b08ca32f3b.tar.xz | |
vkcube: Reorder setting of pipeline stage flags
Pipeline stage flags should be set before assigned to pWaitDstStageMask
in VkSubmitInfo.
Diffstat (limited to 'cube')
| -rw-r--r-- | cube/cube.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cube/cube.c b/cube/cube.c index c3440f87..ae37be45 100644 --- a/cube/cube.c +++ b/cube/cube.c @@ -1063,8 +1063,8 @@ static void demo_draw(struct demo *demo) { VkSubmitInfo submit_info; submit_info.sType = VK_STRUCTURE_TYPE_SUBMIT_INFO; submit_info.pNext = NULL; - submit_info.pWaitDstStageMask = &pipe_stage_flags; pipe_stage_flags = VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT; + submit_info.pWaitDstStageMask = &pipe_stage_flags; submit_info.waitSemaphoreCount = 1; submit_info.pWaitSemaphores = &demo->image_acquired_semaphores[demo->frame_index]; submit_info.commandBufferCount = 1; |
