Created
August 25, 2018 16:40
-
-
Save maz-1/ee4b1f5edc0bbf63446cd1f316562280 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#/etc/X11/xinit/xinitrc.d/90-vdpau_va_gl.sh | |
vdriver=$(/usr/bin/vdpauinfo 2>&1 | /usr/bin/grep -oP "(?<=Failed to open VDPAU backend libvdpau_).*(?=\.so)") | |
if [[ "z$vdriver" = "zi965" || "z$vdriver" = "zi915" ]] | |
then | |
export VDPAU_DRIVER=va_gl | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment