etnaviv: increment the resource seqno in resource_changed

Just increment the resource seqno instead of setting the texture
seqno to be lower by one than the resource seqno.

Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Reviewed-By: Wladimir J. van der Laan <laanwj@gmail.com>
Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com>
This commit is contained in:
Philipp Zabel
2017-05-10 18:01:08 +02:00
committed by Christian Gmeiner
parent ba0b7de7e3
commit cb16d91034
@@ -286,11 +286,7 @@ etna_resource_changed(struct pipe_screen *pscreen, struct pipe_resource *prsc)
{
struct etna_resource *res = etna_resource(prsc);
/* Make sure texture is older than the imported renderable buffer,
* so etna_update_sampler_source will copy the pixel data again.
*/
if (res->texture)
etna_resource(res->texture)->seqno = res->seqno - 1;
res->seqno++;
}
static void