1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-11 08:37:59 +00:00

vo_gpu: vulkan: use correct access flag for present

This needs VK_ACCESS_MEMORY_READ_BIT (spec)
This commit is contained in:
Niklas Haas 2017-09-29 13:55:47 +02:00 committed by Martin Herkt
parent 8b0a111c59
commit b138bdc01c

View File

@ -1849,8 +1849,9 @@ struct vk_cmd *ra_vk_submit(struct ra *ra, struct ra_tex *tex)
struct ra_tex_vk *tex_vk = tex->priv;
assert(tex_vk->external_img);
tex_barrier(ra, cmd, tex, VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT, 0,
VK_IMAGE_LAYOUT_PRESENT_SRC_KHR, false);
tex_barrier(ra, cmd, tex, VK_PIPELINE_STAGE_BOTTOM_OF_PIPE_BIT,
VK_ACCESS_MEMORY_READ_BIT, VK_IMAGE_LAYOUT_PRESENT_SRC_KHR,
false);
// Return this directly instead of going through vk_submit
p->cmd = NULL;