etnaviv: fill in layer_stride for imported resources
authorLucas Stach <l.stach@pengutronix.de>
Thu, 22 Jun 2017 14:10:48 +0000 (16:10 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 29 Jun 2017 09:34:24 +0000 (11:34 +0200)
commitb2a87ce34f081671c7e4969874de91ac6953d062
tree73c9f9d829f803f32eb272a0f387265cc0034d16
parentd8bf2861ad4d901a5160b6c703a0e236968f024a
etnaviv: fill in layer_stride for imported resources

The layer stride information is used in various parts of the driver,
so it needs to be present regardless if the driver allocated the
buffer itself or merely imported it from an external source.

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