mesa/src/broadcom
Maíra Canal 2af12c5b36 v3dv: Check multiple DRM primary nodes before picking the display fd
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>
2024-11-21 11:13:07 +00:00
..
ci rpi4/ci: Increase timeout for rusticl jobs. 2024-11-20 14:09:04 +00:00
cle build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
clif broadcom: only support v42 and v71 2023-11-02 11:59:08 +01:00
common broadcom: move double-buffer heuristic helpers to the compiler 2024-11-21 07:21:47 +00:00
compiler broadcom: move double-buffer heuristic helpers to the compiler 2024-11-21 07:21:47 +00:00
drm-shim build: pass licensing information in SPDX form 2024-06-29 12:42:49 -07:00
qpu broadcom: add missing opcodes for fmov on mul alu for V3D 7.x 2024-10-03 09:02:07 +00:00
simulator broadcom: do not include simulator if not available 2024-09-26 06:12:23 +00:00
vulkan v3dv: Check multiple DRM primary nodes before picking the display fd 2024-11-21 11:13:07 +00:00
.editorconfig
meson.build broadcom: move double-buffer heuristic helpers to the compiler 2024-11-21 07:21:47 +00:00