etnaviv: also update textures from external resources
authorLucas Stach <l.stach@pengutronix.de>
Thu, 22 Jun 2017 14:02:10 +0000 (16:02 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Wed, 19 Jul 2017 14:26:49 +0000 (16:26 +0200)
commit605007d5c796f0f754485d4f46cd370fcf7dfe87
tree59b9e4c33509da1b393e1f83cdfbaf50da9b00b1
parent836d22a2fb99a60e71fd2ccef6bc2d0df696d811
etnaviv: also update textures from external resources

This reworks the logic in etna_update_sampler_source to select the
newest resource view for updating the texture view. This should make
the logic easier to follow and fixes texture updates from imported
dma-bufs.

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