[PATCH 6/7] anv: add VK_EXT_display_control to anv driver [v2]

Jason Ekstrand jason at jlekstrand.net
Wed Jun 20 17:13:36 UTC 2018


On Tue, Jun 19, 2018 at 10:31 PM, Keith Packard <keithp at keithp.com> wrote:

> Jason Ekstrand <jason at jlekstrand.net> writes:
>
> >> +   if (allocator)
> >> +     alloc = allocator;
> >> +   else
> >> +     alloc = &device->instance->alloc;
> >>
> >
> > This is what vk_alloc2 is for. :-)
> ...
> > And vk_free2
> ...
> > This isn't needed if you're using vk_alloc2
>
> Yeah, but I need to pass the allocator down to the wsi common code, and
> that doesn't have any way to touch the device driver allocator
> pointer. I bet I'm just missing something here. Help?
>

I believe that the WSI common code should be capable of fishing the
instance allocator out of the wsi_display so we need only pass the
allocator argument unmodified through to the core WSI code.  Make sense?
Yeah, Vulkan allocator fishing is weird.

--Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20180620/3b2a0d29/attachment-0001.html>


More information about the dri-devel mailing list