v3dv: Rework to remove drm authentication for wsi
authorErico Nunes <nunes.erico@gmail.com>
Thu, 16 Nov 2023 16:00:16 +0000 (17:00 +0100)
committerEric Engestrom <eric@engestrom.ch>
Wed, 22 Nov 2023 08:42:37 +0000 (08:42 +0000)
commit16361af817e79e24147523e1481a36ccc8f8954a
tree5837013cdbbc393f151cb7c8fd65eda46eec459d
parent1a198151650e6f29c4b5e58e5542ece50ce9251e
v3dv: Rework to remove drm authentication for wsi

For Wayland wsi allocations, v3dv used the wl_drm protocol, which is now
being phased out in favor of dmabuf feedback.
wl_drm is used to figure out the display device (in v3dv assumed to be
vc4) and then to authenticate with the Wayland compositor in order to
allocate scanout-able buffers (in this case, dumb buffers) directly at
the display device.
Recent commit 88c03ddd34 changed the behavior of the wsi code, and
wl_drm is now passing the render device instead, which broke Wayland
wsi.
It turns out that the authentication code is not really needed and since
we would like to remove wl_drm usage and the master device is assumed to
be vc4 anyway, we can just remove some unneeded device-specific wsi code
and get Vulkan Wayland wsi back to work.

Fixes: 88c03ddd345 ("egl/drm: get compatible render-only device fd for kms-only device")

Signed-off-by: Erico Nunes <nunes.erico@gmail.com>
Reviewed-by: Iago Toral Quiroga <itoral@igalia.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/26200>
(cherry picked from commit 898700ca647b2de0eecff864b6b0a4cbeb935840)
.pick_status.json
src/broadcom/vulkan/v3dv_device.c
src/broadcom/vulkan/v3dv_private.h
src/broadcom/vulkan/v3dv_wsi.c