summaryrefslogtreecommitdiff
path: root/src/gallium
diff options
context:
space:
mode:
authorPhilipp Zabel <p.zabel@pengutronix.de>2017-01-19 15:05:38 +0100
committerLucas Stach <l.stach@pengutronix.de>2017-01-20 15:30:29 +0100
commit362edc868cf6314dc61d3670aa334f35655975bc (patch)
treec56dc73e8b643d2ceb531a1ea62962ed5f41c23b /src/gallium
parent2c95d6dac399ca58c5bf93f03cd4d19dc84c55af (diff)
etnaviv: initialize seqno of imported resources
Imported resources already have contents that we want to be copied to texture resources derived from them. Set initial seqno of imported resources to 1, just as if it had already been rendered to. Signed-off-by: Philipp Zabel <p.zabel@pengutronix.de> Reviewed-by: Christian Gmeiner <christian.gmeiner@gmail.com> Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Diffstat (limited to 'src/gallium')
-rw-r--r--src/gallium/drivers/etnaviv/etnaviv_resource.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/gallium/drivers/etnaviv/etnaviv_resource.c b/src/gallium/drivers/etnaviv/etnaviv_resource.c
index aefe65bf0e4..a8858c5a49e 100644
--- a/src/gallium/drivers/etnaviv/etnaviv_resource.c
+++ b/src/gallium/drivers/etnaviv/etnaviv_resource.c
@@ -325,6 +325,8 @@ etna_resource_from_handle(struct pipe_screen *pscreen,
if (!rsc->bo)
goto fail;
+ rsc->seqno = 1;
+
level->width = tmpl->width0;
level->height = tmpl->height0;