mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 20:28:04 +02:00
r600g: Swap the util_blitter_destroy call order.
Trivial change that avoids a segmentation fault when the blitter state happens to be bound when the context is destroyed. The free calls should probably removed altogether in the future -- the responsibility to destroy the state atoms lies with whoever created it, and the safest thing for the pipe driver is to not touch any bound state in its destructor.
This commit is contained in:
parent
b29ca2a561
commit
01b39b053b
1 changed files with 3 additions and 2 deletions
|
|
@ -80,12 +80,13 @@ static void r600_destroy_context(struct pipe_context *context)
|
|||
rctx->context.delete_depth_stencil_alpha_state(&rctx->context, rctx->custom_dsa_flush);
|
||||
|
||||
r600_context_fini(&rctx->ctx);
|
||||
|
||||
util_blitter_destroy(rctx->blitter);
|
||||
|
||||
for (int i = 0; i < R600_PIPE_NSTATES; i++) {
|
||||
free(rctx->states[i]);
|
||||
}
|
||||
|
||||
util_blitter_destroy(rctx->blitter);
|
||||
|
||||
u_upload_destroy(rctx->upload_vb);
|
||||
u_upload_destroy(rctx->upload_ib);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue