I've now also tried recompiling vlc and installing from source, disabling some of the video outputs, enabling glx and disabling vdpau in the configure options. Unfortunately the result is the same - video plays in firefox but there is tearing. If I try removing all video_output modules from /usr/lib...