mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-03 22:20:09 +01:00
r600g: Don't leave stale references in query_list when we cannot create bo.
Signed-off-by: Tilman Sauerbeck <tilman@code-monkey.de>
This commit is contained in:
parent
96a4edb8cc
commit
ae23d425c2
1 changed files with 3 additions and 1 deletions
|
|
@ -77,7 +77,6 @@ static struct pipe_query *r600_create_query(struct pipe_context *ctx, unsigned q
|
|||
return NULL;
|
||||
|
||||
q->type = query_type;
|
||||
LIST_ADDTAIL(&q->list, &rctx->query_list);
|
||||
q->buffer_size = 4096;
|
||||
|
||||
q->buffer = radeon_bo(rscreen->rw, 0, q->buffer_size, 1, NULL);
|
||||
|
|
@ -85,6 +84,9 @@ static struct pipe_query *r600_create_query(struct pipe_context *ctx, unsigned q
|
|||
FREE(q);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
LIST_ADDTAIL(&q->list, &rctx->query_list);
|
||||
|
||||
return (struct pipe_query *)q;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue