etnaviv: flush resource when binding as sampler view
authorLucas Stach <l.stach@pengutronix.de>
Mon, 15 May 2017 15:06:41 +0000 (17:06 +0200)
committerLucas Stach <l.stach@pengutronix.de>
Thu, 8 Jun 2017 16:29:36 +0000 (18:29 +0200)
commit978e6876f1cd8ccc8850a5665e9619a3e29b731e
treecc9f5801accf0b6110a996fe9cd220e1af73ecfd
parentf25390afa49f51fadaafed70a890093f96e7a02d
etnaviv: flush resource when binding as sampler view

As TS is also allowed on sampler resources, we need to make sure to resolve
to self when binding the resource as a texture, to avoid stale content
being sampled.

Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
src/gallium/drivers/etnaviv/etnaviv_texture.c