v3dv: don't check if DRM device is master

This was added to ensure we can get its resources, but they can be
obtained also from non master.

Fixes: 2af12c5b36 ("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 <jasuarez@igalia.com>
Reviewed-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/34366>
(cherry picked from commit 8742927d8f)
This commit is contained in:
Juan A. Suarez Romero 2025-04-03 13:18:24 +02:00 committed by Eric Engestrom
parent 4bb8d70fd6
commit 50594727bd
2 changed files with 1 additions and 5 deletions

View file

@ -1724,7 +1724,7 @@
"description": "v3dv: don't check if DRM device is master",
"nominated": true,
"nomination_type": 2,
"resolution": 0,
"resolution": 1,
"main_sha": null,
"because_sha": "2af12c5b36ec8591cff812e91cb117929de5f84e",
"notes": null

View file

@ -1508,10 +1508,6 @@ try_display_device(struct v3dv_instance *instance, const char *path,
goto fail;
}
/* 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));