etnaviv: remember data offset into BO
authorLucas Stach <l.stach@pengutronix.de>
Wed, 23 May 2018 15:19:52 +0000 (17:19 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 8 Aug 2019 14:11:34 +0000 (16:11 +0200)
commit68c24b09c22b600d1e54fe116ee74fbddf4f0fc5
tree8f610cb7f888583bb2a5d7b1b707cc0fafa2d561
parentb8842bc3128a255677a1a8ea5207df46f8e54a04
etnaviv: remember data offset into BO

Imported resources might not start at offset 0 into the buffer object.
Make sure to remember the offset that is provided with the handle on
import.

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>
src/gallium/drivers/etnaviv/etnaviv_resource.c