diff options
author | Tilman Sauerbeck <[email protected]> | 2010-09-09 13:51:51 +0200 |
---|---|---|
committer | Tilman Sauerbeck <[email protected]> | 2010-09-10 13:09:33 +0200 |
commit | ae23d425c2aae652f4fc61ee8dee721e8e25509e (patch) | |
tree | 85ecf332028df3a4ed02d9089643065f8ad3d168 /src/gallium/drivers | |
parent | 96a4edb8ccb4bc1125918b972e8b3a080f496d0d (diff) |
r600g: Don't leave stale references in query_list when we cannot create bo.
Signed-off-by: Tilman Sauerbeck <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r-- | src/gallium/drivers/r600/r600_query.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/gallium/drivers/r600/r600_query.c b/src/gallium/drivers/r600/r600_query.c index 530940ed843..0073072b4af 100644 --- a/src/gallium/drivers/r600/r600_query.c +++ b/src/gallium/drivers/r600/r600_query.c @@ -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; } |