Skip to content

pvr: alloc WSI memory via GPU when there isn't a valid display FD

What does this MR do and why?

Alloc WSI memory via GPU when there isn't a valid display FD. This isn't currently causing any issues as the driver only supports the VK_KHR_display extension for now, so there will always be a valid display FD when a WSI allocation is requested. However, checking that we have a valid display FD when attempting to allocate via the display driver is more correct and, when we come to support VK_KHR_wayland_surface, will avoid vkAllocateMemory() unnecessarily failing.

This addresses a comment made here: !15507 (comment 2188052)

/cc @daniels @enunes

Merge request reports