Skip to content

Instantly share code, notes, and snippets.

@maz-1
Created August 25, 2018 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maz-1/ee4b1f5edc0bbf63446cd1f316562280 to your computer and use it in GitHub Desktop.
Save maz-1/ee4b1f5edc0bbf63446cd1f316562280 to your computer and use it in GitHub Desktop.
#!/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