etnaviv: initialize seqno of imported resources
authorPhilipp Zabel <p.zabel@pengutronix.de>
Thu, 19 Jan 2017 14:05:38 +0000 (15:05 +0100)
committerLucas Stach <l.stach@pengutronix.de>
Fri, 20 Jan 2017 14:30:29 +0000 (15:30 +0100)
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>
src/gallium/drivers/etnaviv/etnaviv_resource.c

index aefe65bf0e47e79466b2e9fd8f0af25914f59d7e..a8858c5a49e19ac1926598427a2bf0142c06d7a7 100644 (file)
@@ -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;