etnaviv: simplify transfer tiling handling
authorLucas Stach <l.stach@pengutronix.de>
Thu, 18 May 2017 14:44:18 +0000 (16:44 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 8 Jun 2017 16:29:36 +0000 (18:29 +0200)
commitd4e6de9e385579d49cd5f51e643d0141c81b5604
tree975112dc32916c47e2ab1463e5381b2c94e9863e
parent6e628ee3f3cd250d58f1b49fc0b53db58cd8eeea
etnaviv: simplify transfer tiling handling

There is no need to special case compressed resources, as they are already
marked as linear on allocation. With that out of the way, there is room to
cut down on the number of if clauses used.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Wladimir J. van der Laan <laanwj@gmail.com>
src/gallium/drivers/etnaviv/etnaviv_transfer.c