[FFmpeg-cvslog] vulkan_filter: allow reusing frame contexts with DRM tiling

Lynne git at videolan.org
Fri Aug 16 02:22:43 EEST 2024


ffmpeg | branch: master | Lynne <dev at lynne.ee> | Thu Aug 15 00:54:48 2024 +0200| [b165f144e7426eb90467158c65218353ee9da36a] | committer: Lynne

vulkan_filter: allow reusing frame contexts with DRM tiling

There's no reason not to permit this, particularly if a user wants
to manipulate images which will be exported back to DRM.

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=b165f144e7426eb90467158c65218353ee9da36a
---

 libavfilter/vulkan_filter.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libavfilter/vulkan_filter.c b/libavfilter/vulkan_filter.c
index 6221e0206d..6f3df9714b 100644
--- a/libavfilter/vulkan_filter.c
+++ b/libavfilter/vulkan_filter.c
@@ -54,8 +54,8 @@ int ff_vk_filter_init_context(AVFilterContext *avctx, FFVulkanContext *s,
         if (sw_format != frames_ctx->sw_format)
             goto skip;
 
-        /* Unusual tiling mismatch. Don't let linear through either. */
-        if (vk_frames->tiling != VK_IMAGE_TILING_OPTIMAL)
+        /* Don't let linear through. */
+        if (vk_frames->tiling == VK_IMAGE_TILING_LINEAR)
             goto skip;
 
         s->extensions = ff_vk_extensions_to_mask(vk_dev->enabled_dev_extensions,



More information about the ffmpeg-cvslog mailing list