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

Disable the libva GLX backend if EGL is enabled #760

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DarkDefender
Copy link

Checklist

I've left the last two items unchecked on purpose as I think this might not be the solution that will be accepted. But we will see how you guys feel.

Currently mythtv always seem to pull in the drm and glx backend for libva.
On Gentoo we have removed the glx backend for libva to simplify some packaging.
This shouldn't regress the user experience as it seems all packages using libva in Gentoo (including mythtv) also supports the EGL backend and usually prefers to use the EGL backend as well.

However there is currently no way to compile mythtv without also requiring the libva glx backend, even if it will never be used. So to fix this I created the "lazy" solution of making the GLX backend only available if EGL support is not turned on.

I'm unsure if this is an acceptable solution or not. But at least it should provide a good basis for starting a discussion.

One could instead for example add a USING_GLX flag to allow both backends to be available as before.
However most other projects that depend on libva in the Gentoo package manager seem to have opted to drop the GLX backend and always use the drm backend. (However this of course means that you won't be able to use it on older linux dists where EGL is not available)

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.

1 participant