diff options
author | Marek Olšák <[email protected]> | 2016-10-24 23:26:39 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-10-26 13:02:58 +0200 |
commit | 29144d0f34d9325a3549e4ed0feecc0577c70358 (patch) | |
tree | f73d8c2fea2d28c967f02883f75592a627cdf218 /src/gallium/drivers/radeon/r600_query.c | |
parent | e3c3a7fadaf87f68b5d8053d21d8c986a90dec30 (diff) |
gallium/radeon: stop using PIPE_BIND_CUSTOM
it has no effect whatsoever
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/r600_query.c')
-rw-r--r-- | src/gallium/drivers/radeon/r600_query.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gallium/drivers/radeon/r600_query.c b/src/gallium/drivers/radeon/r600_query.c index a5c8595ea12..047f597a235 100644 --- a/src/gallium/drivers/radeon/r600_query.c +++ b/src/gallium/drivers/radeon/r600_query.c @@ -338,7 +338,7 @@ static struct r600_resource *r600_new_query_buffer(struct r600_common_context *c * usage pattern. */ struct r600_resource *buf = (struct r600_resource*) - pipe_buffer_create(ctx->b.screen, PIPE_BIND_CUSTOM, + pipe_buffer_create(ctx->b.screen, 0, PIPE_USAGE_STAGING, buf_size); if (!buf) return NULL; @@ -1580,7 +1580,7 @@ void r600_query_init_backend_mask(struct r600_common_context *ctx) /* create buffer for event data */ buffer = (struct r600_resource*) - pipe_buffer_create(ctx->b.screen, PIPE_BIND_CUSTOM, + pipe_buffer_create(ctx->b.screen, 0, PIPE_USAGE_STAGING, ctx->max_db*16); if (!buffer) goto err; |