From 8742927d8f7bd65a529957230efd6d853e4fc4c9 Mon Sep 17 00:00:00 2001 From: "Juan A. Suarez Romero" Date: Thu, 3 Apr 2025 13:18:24 +0200 Subject: [PATCH] v3dv: don't check if DRM device is master MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This was added to ensure we can get its resources, but they can be obtained also from non master. Fixes: 2af12c5b36e ("v3dv: Check multiple DRM primary nodes before picking the display fd") Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/12641 Signed-off-by: Juan A. Suarez Romero Reviewed-by: MaĆ­ra Canal Reviewed-by: Iago Toral Quiroga Part-of: --- src/broadcom/vulkan/v3dv_device.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/broadcom/vulkan/v3dv_device.c b/src/broadcom/vulkan/v3dv_device.c index a7139743c03..459500bf151 100644 --- a/src/broadcom/vulkan/v3dv_device.c +++ b/src/broadcom/vulkan/v3dv_device.c @@ -1513,12 +1513,7 @@ try_display_device(struct v3dv_instance *instance, const char *path, * drivers for different types of connectors and the one with a connected * output may not be vc4, which unlike Raspberry Pi 4, doesn't drive the * DSI output for example. - * - * If the display device isn't the DRM master, we can't get its resources. */ - if (!drmIsMaster(*fd)) - goto fail; - drmModeResPtr mode_res = drmModeGetResources(*fd); if (!mode_res) { mesa_loge("Failed to get DRM mode resources: %s\n", strerror(errno));