aboutsummaryrefslogtreecommitdiffhomepage
path: root/video/out
diff options
context:
space:
mode:
authorGravatar Niklas Haas <git@haasn.xyz>2017-09-29 13:55:47 +0200
committerGravatar Martin Herkt <652892+lachs0r@users.noreply.github.com>2017-12-25 00:47:53 +0100
commitb138bdc01c666c1b33dc23e276228aa56a2bf7f8 (patch)
tree1e35d4875220c69880f50a20628388bcb23303ba /video/out
parent8b0a111c5961a27d37e78e07efa8ab2aa6408afa (diff)
vo_gpu: vulkan: use correct access flag for present
This needs VK_ACCESS_MEMORY_READ_BIT (spec)
Diffstat (limited to 'video/out')
-rw-r--r--video/out/vulkan/ra_vk.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/video/out/vulkan/ra_vk.c b/video/out/vulkan/ra_vk.c
index f0353629e6..0ffd5097f5 100644
--- a/video/out/vulkan/ra_vk.c
+++ b/video/out/vulkan/ra_vk.c
@@ -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;