[rbp] Initial hacking aimed at getting hw accelerated resampling working

Not complete!