etnaviv: upgrade DISCARD_RANGE to DISCARD_WHOLE_RESOURCE if possible
authorLucas Stach <l.stach@pengutronix.de>
Thu, 18 May 2017 15:05:02 +0000 (17:05 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 8 Jun 2017 16:29:36 +0000 (18:29 +0200)
commit0f888ad4be32d1c66e2749feacb8b88def03fac9
tree1524444bc5cbbc9ceb16d0ce9215c6ec9d05cb50
parentd4e6de9e385579d49cd5f51e643d0141c81b5604
etnaviv: upgrade DISCARD_RANGE to DISCARD_WHOLE_RESOURCE if possible

Stolen from VC4. As we don't do any fancy reallocation tricks yet, it's
possible to upgrade also coherent mappings and shared resources.

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