[FFmpeg-devel] [PATCH 55/97] Vulkan patchset part 2 - hwcontext rewrite and filtering

Anton Khirnov anton at khirnov.net
Thu May 11 20:00:20 EEST 2023


Quoting Lynne (2023-05-11 18:40:54)
> May 11, 2023, 18:05 by anton at khirnov.net:
> 
> > Quoting Lynne (2023-04-24 17:56:38)
> >
> >> From c50347a552f5c7c2e3fcf20ef9a1ad4f1a419918 Mon Sep 17 00:00:00 2001
> >> From: Lynne <dev at lynne.ee>
> >> Date: Wed, 23 Nov 2022 20:32:49 +0100
> >> Subject: [PATCH 27/97] hwcontext_vulkan: remove contiguous memory hack
> >>
> >
> > This needs a lot more context.
> >
> > What was the hack, why was it added, why is it being removed and what
> > will be affected by that.
> >
> 
> The hack was added to enable exporting of vulkan images to DRM.
> On Intel hardware, specifically for DRM images, all planes must be
> allocated next to each other, due to hardware limitation, so the hack
> used a single large allocation and suballocated all planes from it.
> 
> By natively supporting multiplane images, the driver is what decides
> the layout, so exporting just works.
> 
> It's a hack because it conflicted heavily with image allocation, and
> with the whole ecosystem in general, before multiplane images were
> supported, which just made it redundant.
> 
> This is also the commit which broke the hwcontext hardest and prompted
> the entire rewrite in the first place.

So take this paragraph and put it in the commit message.

-- 
Anton Khirnov


More information about the ffmpeg-devel mailing list