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

figure out a way to enable this by default #23

Closed
tchollingsworth opened this issue Dec 7, 2013 · 4 comments
Closed

figure out a way to enable this by default #23

tchollingsworth opened this issue Dec 7, 2013 · 4 comments

Comments

@tchollingsworth
Copy link

During the RPMFusion review for libvdpau-va-gl we discussed ways to enable this by default for people who have the hardware. We'd like to move that discussion upstream.

Doing it in the intel driver seems to have been rejected, and you seemed to think patching vdpau wouldn't fly either. Is there another way this could be done properly?

Alternatively, maybe an /etc/profile.d hack to set VDPAU_DRIVER could be considered in the interim? Is there a decent way to detect if compatible hardware is in use other than checking if the kernel module is loaded?

Also Nicolas mentioned optimus hardware as a potential issue also. If we decided to hack the environment variable in we'd probably want to see about patching optirun to drop it as well.

Thanks for any suggestions!

@i-rinat
Copy link
Owner

i-rinat commented Dec 7, 2013

Is there another way this could be done properly?

The only proper way I see is to patch intel driver for second DRI2 name. All other solutions are fragile. If you add VDPAU_DRIVER to environment for all users, it will break VDPAU for all non-intel users (if some of them decides to install the package).

There is another possible solution comes to mind. One can create proxy VDPAU driver (which will be loaded on any hardware by setting VDPAU_DRIVER) and implement selection logic there. :-)

optimus hardware

I don't have optimus hardware, but I heard that optirun does nothing to pass VDPAU calls. Maybe that was about primus, I'm not sure.

@i-rinat
Copy link
Owner

i-rinat commented Dec 11, 2013

and you seemed to think patching vdpau wouldn't fly either

I've though it's worth to try anyway, so I've sent patch to VDPAU mailing list.

@i-rinat
Copy link
Owner

i-rinat commented Jan 11, 2014

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

No branches or pull requests

2 participants