Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wayland: don't try to authenticate with render nodes #476

Merged
merged 1 commit into from Dec 31, 2020

Conversation

emersion
Copy link
Contributor

@emersion emersion commented Dec 1, 2020

When the parent compositor is running with a render node, Mesa will send
the render node path via wl_drm instead of the primary path. DRM
authentication doesn't work with render nodes.

This patch makes the Wayland logic consistent with the DRM logic 1.

Tested using Sway running with wlroots' headless backend.

Signed-off-by: Simon Ser contact@emersion.fr

@emersion
Copy link
Contributor Author

emersion commented Dec 7, 2020

@XinfengZhang: gentle ping

@XinfengZhang
Copy link
Contributor

sorry for late response, 1 question: is there minimum version requirement for function drmGetNodeTypeFromFd?

When the parent compositor is running with a render node, Mesa will send
the render node path via wl_drm instead of the primary path. DRM
authentication doesn't work with render nodes.

This patch makes the Wayland logic consistent with the DRM logic [1].

Tested using Sway running with wlroots' headless backend.

[1]: https://github.com/intel/libva/blob/b4d0af7f43f0ef2d51f070c75429c0d6acca663b/va/drm/va_drm.c#L68

Signed-off-by: Simon Ser <contact@emersion.fr>
@emersion
Copy link
Contributor Author

That's a good point, it requires 2.4.60. I've updated the patch to bump to version constraint.

@emersion
Copy link
Contributor Author

Ping @XinfengZhang

1 similar comment
@emersion
Copy link
Contributor Author

Ping @XinfengZhang

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants