mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-14 14:00:17 +01:00
Raspberry Pi 5 has different drivers for different types of connectors. For example, HDMI connections are handled through vc4, but DSI connections are handled through drm-rp1-dsi. Currently, we only allow vc4 as display driver, which means that, when we use VK_KHR_display with a DSI display, we won't get any available displays. In order to make sure we have available displays when using DSI/DPI/VEC displays, enumerate all DRM primary nodes and use the first fd that has a connected output. For example, in the case we have only a DSI display connected to the RPi 5, it will pick the drm-rp1-dsi as the device. In the case we have both DSI and HDMI displays connected, it will pick the first fd that it checks. Ideally, we would like to see all displays available in the return of `vkGetPhysicalDeviceDisplayProperties2KHR`, but `wsi->fd` is a variable, not an array. Therefore, it only supports one fd. Signed-off-by: Maíra Canal <mcanal@igalia.com> Reviewed-by: Iago Toral Quiroga <itoral@igalia.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/32123> |
||
|---|---|---|
| .. | ||
| ci | ||
| cle | ||
| clif | ||
| common | ||
| compiler | ||
| drm-shim | ||
| qpu | ||
| simulator | ||
| vulkan | ||
| .editorconfig | ||
| meson.build | ||