When the compositor advertises a render node, we don't need to
perform DRM authentication. Skip the unnecessary roundtrip in this
case.
Signed-off-by: Simon Ser <contact@emersion.fr>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/9704>
if (roundtrip(dri2_dpy) < 0 || dri2_dpy->fd == -1)
goto cleanup;
- if (roundtrip(dri2_dpy) < 0 || !dri2_dpy->authenticated)
+ if (!dri2_dpy->authenticated &&
+ (roundtrip(dri2_dpy) < 0 || !dri2_dpy->authenticated))
goto cleanup;
dri2_dpy->fd = loader_get_user_preferred_fd(dri2_dpy->fd,