mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-02-18 04:47:12 +00:00
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.
This commit is contained in:
parent
604dfdb44c
commit
b165f144e7
@ -54,8 +54,8 @@ int ff_vk_filter_init_context(AVFilterContext *avctx, FFVulkanContext *s,
|
|||||||
if (sw_format != frames_ctx->sw_format)
|
if (sw_format != frames_ctx->sw_format)
|
||||||
goto skip;
|
goto skip;
|
||||||
|
|
||||||
/* Unusual tiling mismatch. Don't let linear through either. */
|
/* Don't let linear through. */
|
||||||
if (vk_frames->tiling != VK_IMAGE_TILING_OPTIMAL)
|
if (vk_frames->tiling == VK_IMAGE_TILING_LINEAR)
|
||||||
goto skip;
|
goto skip;
|
||||||
|
|
||||||
s->extensions = ff_vk_extensions_to_mask(vk_dev->enabled_dev_extensions,
|
s->extensions = ff_vk_extensions_to_mask(vk_dev->enabled_dev_extensions,
|
||||||
|
Loading…
Reference in New Issue
Block a user