etnaviv: implement resource import with modifier
authorLucas Stach <l.stach@pengutronix.de>
Thu, 22 Jun 2017 10:49:17 +0000 (12:49 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Wed, 19 Jul 2017 14:26:49 +0000 (16:26 +0200)
commit8a44aa50435b905b6cdf4524711702b7645cbd2b
tree2e34f32da15ccb9b2b7614ad0fdbe1def86e0f18
parent605007d5c796f0f754485d4f46cd370fcf7dfe87
etnaviv: implement resource import with modifier

This implements resource import with modifier, deriving the correct
internal layout from the modifier and constructing a render compatible
base resource if needed.

This removes the special cases for DDX and renderonly scanout allocated
buffers, as the linear modifier is enough to trigger correct handling
of those buffers.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-by: Philipp Zabel <p.zabel@pengutronix.de>
Reviewed-by: Wladimir J. van der Laan <laanwj@gmail.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
Acked-by: Daniel Stone <daniels@collabora.com>
src/gallium/drivers/etnaviv/etnaviv_resource.c