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

Git pushed a commit to branch master
in repository ffmpeg.

commit 1d037e748dc137faa2a7cfa885b8f49192f86080
Author:     Lynne <[email protected]>
AuthorDate: Thu Sep 24 11:59:45 2026 +0900
Commit:     Lynne <[email protected]>
CommitDate: Fri Sep 25 01:13:25 2026 +0900

    apv_encode_vulkan: read the tile sizes from host memory
    
    They were read one at a time from device-local memory through the BAR,
    an uncached read over the bus each, which took 70-90% of the encoder's
    CPU time. 1080p on RADV goes from 290 to 625 fps, 4K from 91 to 260 fps.
---
 libavcodec/apv_encode_vulkan.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/libavcodec/apv_encode_vulkan.c b/libavcodec/apv_encode_vulkan.c
index d814eb72e8..3e7ca3a4f5 100644
--- a/libavcodec/apv_encode_vulkan.c
+++ b/libavcodec/apv_encode_vulkan.c
@@ -415,9 +415,8 @@ static int submit_frame(AVCodecContext *avctx, 
FFVkExecContext *exec,
     RET(ff_vk_get_pooled_buffer(&ev->s, &ev->sizes_pool, &fd->sizes_ref,
                                 VK_BUFFER_USAGE_STORAGE_BUFFER_BIT,
                                 NULL, ev->sizes_size,
-                                VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT |
                                 VK_MEMORY_PROPERTY_HOST_VISIBLE_BIT |
-                                VK_MEMORY_PROPERTY_HOST_COHERENT_BIT));
+                                VK_MEMORY_PROPERTY_HOST_CACHED_BIT));
     sizes_buf = fd->sizes_ref;
 
     ff_vk_exec_add_dep_refstruct(&ev->s, exec, fd->coeffs_ref);

-- 
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