pan/mdg: Implement texture gathers