From: Philipp Zabel Date: Thu, 19 Jan 2017 14:05:38 +0000 (+0100) Subject: etnaviv: initialize seqno of imported resources X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=362edc868cf6314dc61d3670aa334f35655975bc;p=mesa.git 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 Reviewed-by: Christian Gmeiner Signed-off-by: Lucas Stach --- 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;