aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLynne <dev@lynne.ee>2024-08-15 00:54:48 +0200
committerLynne <dev@lynne.ee>2024-08-16 01:22:17 +0200
commitb165f144e7426eb90467158c65218353ee9da36a (patch)
tree122dbbf20438917823281b2a943205526a622544
parent604dfdb44c7261b8a8608d55727d2a7e848d3d1e (diff)
downloadffmpeg-b165f144e7426eb90467158c65218353ee9da36a.tar.gz
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.
-rw-r--r--libavfilter/vulkan_filter.c4
1 files 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,