From: Philipp Zabel
Date: Wed, 10 May 2017 16:01:08 +0000 (+0200)
Subject: etnaviv: increment the resource seqno in resource_changed
X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=cb16d9103480687c414519bed5256217c9e7aaad;p=mesa.git
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
Signed-off-by: Lucas Stach
Reviewed-By: Wladimir J. van der Laan
Reviewed-by: Christian Gmeiner
---
diff --git a/src/gallium/drivers/etnaviv/etnaviv_resource.c b/src/gallium/drivers/etnaviv/etnaviv_resource.c
index 103b53c1c31..1341e1ea231 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_resource.c
+++ b/src/gallium/drivers/etnaviv/etnaviv_resource.c
@@ -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