diff --git a/src/gallium/drivers/etnaviv/etnaviv_resource.c b/src/gallium/drivers/etnaviv/etnaviv_resource.c index 3808c29..b99a8c4 100644 --- a/src/gallium/drivers/etnaviv/etnaviv_resource.c +++ b/src/gallium/drivers/etnaviv/etnaviv_resource.c @@ -632,6 +632,12 @@ etna_resource_used(struct etna_context *ctx, struct pipe_resource *prsc, /* TODO resources can actually be shared across contexts, * so I'm not sure a single list-head will do the trick? */ debug_assert((rsc->pending_ctx == ctx) || !rsc->pending_ctx); + if(!((rsc->pending_ctx == ctx) || !rsc->pending_ctx)){ + printf("\n Found pending ctx ,clear the screen"); + struct etna_context *extctx = (struct etna_context *)rsc->pending_ctx; + struct pipe_context *pctx = &extctx->base; + pctx->flush(pctx, NULL, 0); + } list_delinit(&rsc->list); list_addtail(&rsc->list, &ctx->used_resources); rsc->pending_ctx = ctx;