diff options
author | Rob Clark <[email protected]> | 2018-08-22 09:07:37 -0400 |
---|---|---|
committer | Rob Clark <[email protected]> | 2018-09-05 13:38:43 -0400 |
commit | 73378013d7ff6ddf7f503c6386d8243463be11f3 (patch) | |
tree | 128c9ae4fd07b3fa31e3f93684e52d4a3a8cdcc9 /src/gallium/drivers/freedreno/a3xx | |
parent | 1a24f519663494b212d16693b5a5d9ab2f2464c0 (diff) |
freedreno: fix context teardown harder
The border_color_uploaders need to be torn down before the transfer_pool
is destroyed.
Fixes: e11e9d63943 freedreno: fix context teardown race
Signed-off-by: Rob Clark <[email protected]>
Diffstat (limited to 'src/gallium/drivers/freedreno/a3xx')
-rw-r--r-- | src/gallium/drivers/freedreno/a3xx/fd3_context.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/freedreno/a3xx/fd3_context.c b/src/gallium/drivers/freedreno/a3xx/fd3_context.c index c045133a27f..b2dbc520716 100644 --- a/src/gallium/drivers/freedreno/a3xx/fd3_context.c +++ b/src/gallium/drivers/freedreno/a3xx/fd3_context.c @@ -44,6 +44,8 @@ fd3_context_destroy(struct pipe_context *pctx) { struct fd3_context *fd3_ctx = fd3_context(fd_context(pctx)); + u_upload_destroy(fd3_ctx->border_color_uploader); + fd_context_destroy(pctx); fd_bo_del(fd3_ctx->vs_pvt_mem); @@ -52,8 +54,6 @@ fd3_context_destroy(struct pipe_context *pctx) fd_context_cleanup_common_vbos(&fd3_ctx->base); - u_upload_destroy(fd3_ctx->border_color_uploader); - fd_hw_query_fini(pctx); free(fd3_ctx); |