Mesa (master): etnaviv: initialize seqno of imported resources

Lucas Stach lynxeye at kemper.freedesktop.org
Fri Jan 20 14:35:58 UTC 2017


Module: Mesa
Branch: master
Commit: 362edc868cf6314dc61d3670aa334f35655975bc
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=362edc868cf6314dc61d3670aa334f35655975bc

Author: Philipp Zabel <p.zabel at pengutronix.de>
Date:   Thu Jan 19 15:05:38 2017 +0100

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 at pengutronix.de>
Reviewed-by: Christian Gmeiner <christian.gmeiner at gmail.com>
Signed-off-by: Lucas Stach <l.stach at pengutronix.de>

---

 src/gallium/drivers/etnaviv/etnaviv_resource.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/gallium/drivers/etnaviv/etnaviv_resource.c b/src/gallium/drivers/etnaviv/etnaviv_resource.c
index aefe65b..a8858c5 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;
 




More information about the mesa-commit mailing list