etnaviv: add helper to work out RS alignment
authorLucas Stach <l.stach@pengutronix.de>
Tue, 4 Jul 2017 14:19:51 +0000 (16:19 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Wed, 19 Jul 2017 14:26:49 +0000 (16:26 +0200)
commit68ec876a252a0e78d7eb2991bb0397752bbeec25
treec07bd2378127299b043a48329e6c12bfa118feeb
parentc4818808991134cc7d7741c8f29dc50f6d2102a0
etnaviv: add helper to work out RS alignment

The minimum RS alignment calculation is needed in various places.
Extract a helper to avoid open-coding the calcuation at every site.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_resource.c
src/gallium/drivers/etnaviv/etnaviv_translate.h