diff options
author | Rob Clark <[email protected]> | 2016-05-20 20:05:26 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2016-07-30 09:23:42 -0400 |
commit | 9e4561d3c47c2dabce43ce160915fd9bcea05a81 (patch) | |
tree | 6e9157a18a356672f2568831e4139d42fb01f1da /src/gallium/drivers/freedreno/freedreno_context.c | |
parent | 9bbd239a4039522d7c1023ecb21764679447bb2d (diff) |
freedreno: push resource tracking down into batch
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/freedreno_context.c')
-rw-r--r-- | src/gallium/drivers/freedreno/freedreno_context.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/gallium/drivers/freedreno/freedreno_context.c b/src/gallium/drivers/freedreno/freedreno_context.c index d3a631e3a00..3614370bf33 100644 --- a/src/gallium/drivers/freedreno/freedreno_context.c +++ b/src/gallium/drivers/freedreno/freedreno_context.c @@ -45,7 +45,6 @@ void fd_context_render(struct pipe_context *pctx) { struct fd_context *ctx = fd_context(pctx); - struct fd_resource *rsc, *rsc_tmp; DBG("needs_flush: %d", ctx->needs_flush); @@ -61,16 +60,6 @@ fd_context_render(struct pipe_context *pctx) ctx->cleared = ctx->partial_cleared = ctx->restore = ctx->resolve = 0; ctx->gmem_reason = 0; ctx->num_draws = 0; - - /* go through all the used resources and clear their reading flag */ - LIST_FOR_EACH_ENTRY_SAFE(rsc, rsc_tmp, &ctx->used_resources, list) { - debug_assert(rsc->status != 0); - rsc->status = 0; - rsc->pending_ctx = NULL; - list_delinit(&rsc->list); - } - - assert(LIST_IS_EMPTY(&ctx->used_resources)); } static void |