This is an automated email from the git hooks/post-receive script.

Git pushed a commit to branch master
in repository ffmpeg.

The following commit(s) were added to refs/heads/master by this push:
     new a50d8c7c58 vulkan: drop the inherited access from a frame's first 
barrier
a50d8c7c58 is described below

commit a50d8c7c5857a94699b8ad4339d08f2477d6a7be
Author:     Lynne <[email protected]>
AuthorDate: Sun Sep 20 22:06:09 2026 +0900
Commit:     Lynne <[email protected]>
CommitDate: Sun Sep 20 22:12:22 2026 +0900

    vulkan: drop the inherited access from a frame's first barrier
    
    The exec already waits on the frame's semaphore, which makes earlier
    writes available and visible. Inheriting the old flags put shader
    accesses on transfer-only queues, flagged as
    VUID-VkImageMemoryBarrier2-srcAccessMask-03909 and -07454 on every
    hwdownload after a compute filter.
---
 libavutil/vulkan.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/libavutil/vulkan.c b/libavutil/vulkan.c
index b2e575c131..e9e914dab8 100644
--- a/libavutil/vulkan.c
+++ b/libavutil/vulkan.c
@@ -2227,13 +2227,16 @@ void ff_vk_frame_barrier(FFVulkanContext *s, 
FFVkExecContext *e,
             break;
         }
 
+    /* Earlier submissions are ordered by the frame's semaphore, which makes
+     * their writes available and visible, so only accesses recorded in this
+     * command buffer belong in the source scope. */
     for (int i = 0; i < nb_images; i++) {
         bar[*nb_bar] = (VkImageMemoryBarrier2) {
             .sType = VK_STRUCTURE_TYPE_IMAGE_MEMORY_BARRIER_2,
             .pNext = NULL,
             .srcStageMask = src_stage,
             .dstStageMask = dst_stage,
-            .srcAccessMask = found >= 0 ? e->access_dst[found] : 
vkf->access[i],
+            .srcAccessMask = found >= 0 ? e->access_dst[found] : 
VK_ACCESS_2_NONE,
             .dstAccessMask = new_access,
             .oldLayout = found >= 0 ? e->layout_dst[found] : vkf->layout[0],
             .newLayout = new_layout,

-- 
To stop receiving notification emails like this one, please contact
[email protected].
_______________________________________________
ffmpeg-cvslog mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to