etnaviv: add helper to work out RS alignment