mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-07 13:08:04 +02:00
vulkan-renderer: Fix stages for sync in create_swapchain
Fix the stages for image-layout transitions to initialise UNDEFINED images we're going to use for our swapchain. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
ca54443b2c
commit
c57f7bc2e5
1 changed files with 2 additions and 2 deletions
|
|
@ -2374,8 +2374,8 @@ vulkan_renderer_create_swapchain(struct weston_output *output,
|
||||||
|
|
||||||
transition_image_layout(cmd_buffer, swapchain_images[i],
|
transition_image_layout(cmd_buffer, swapchain_images[i],
|
||||||
VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_PRESENT_SRC_KHR,
|
VK_IMAGE_LAYOUT_UNDEFINED, VK_IMAGE_LAYOUT_PRESENT_SRC_KHR,
|
||||||
VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, VK_PIPELINE_STAGE_TRANSFER_BIT,
|
VK_PIPELINE_STAGE_TOP_OF_PIPE_BIT, VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT,
|
||||||
0, VK_ACCESS_TRANSFER_WRITE_BIT);
|
0, VK_ACCESS_COLOR_ATTACHMENT_READ_BIT | VK_ACCESS_COLOR_ATTACHMENT_WRITE_BIT);
|
||||||
|
|
||||||
create_image_semaphores(vr, vo, im);
|
create_image_semaphores(vr, vo, im);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue