lima/ppir: refactor texture code to simplify scheduler