mirror of
https://gitlab.freedesktop.org/wayland/weston.git
synced 2026-05-07 06:08:05 +02:00
vulkan-renderer: Fix stages for sync in texture upload
When we're uploading data to a texture, the hazard we're protecting against before upload is ensuring reads from the fragment shader are complete before writes from the transfer queue begin. The synchronisation after the buffer -> image copy was correct. Signed-off-by: Daniel Stone <daniels@collabora.com>
This commit is contained in:
parent
c57f7bc2e5
commit
89bd7bd595
1 changed files with 2 additions and 2 deletions
|
|
@ -2749,8 +2749,8 @@ update_texture_image(struct vulkan_renderer *vr,
|
|||
|
||||
transition_image_layout(cmd_buffer, texture->image,
|
||||
expected_layout, VK_IMAGE_LAYOUT_TRANSFER_DST_OPTIMAL,
|
||||
VK_PIPELINE_STAGE_TRANSFER_BIT, VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT,
|
||||
VK_ACCESS_TRANSFER_WRITE_BIT, VK_ACCESS_SHADER_READ_BIT);
|
||||
VK_PIPELINE_STAGE_FRAGMENT_SHADER_BIT, VK_PIPELINE_STAGE_TRANSFER_BIT,
|
||||
VK_ACCESS_SHADER_READ_BIT, VK_ACCESS_TRANSFER_WRITE_BIT);
|
||||
|
||||
copy_buffer_to_sub_image(cmd_buffer, texture->staging_buffer, texture->image,
|
||||
buffer_width, buffer_height, pitch, pixel_format->bpp,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue