diff options
author | Marek Olšák <[email protected]> | 2016-05-08 12:30:25 +0200 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2016-05-10 17:20:09 +0200 |
commit | 544967faf59b20b6254d713fca94f6e9aa86754c (patch) | |
tree | ed9b37d9a452f1fe761379cc0a165403d4b1f24c /src/gallium/drivers/radeon/r600_query.c | |
parent | bfa8a00920dc8ae8f2f6f4389f1dda8c950bff97 (diff) |
gallium/radeon: use gart_page_size instead of hardcoded 4096
Reviewed-by: Bas Nieuwenhuizen <[email protected]>
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 | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/r600_query.c b/src/gallium/drivers/radeon/r600_query.c index 38c7026a784..9f12ccd278c 100644 --- a/src/gallium/drivers/radeon/r600_query.c +++ b/src/gallium/drivers/radeon/r600_query.c @@ -262,7 +262,8 @@ void r600_query_hw_destroy(struct r600_common_context *rctx, static struct r600_resource *r600_new_query_buffer(struct r600_common_context *ctx, struct r600_query_hw *query) { - unsigned buf_size = MAX2(query->result_size, 4096); + unsigned buf_size = MAX2(query->result_size, + ctx->screen->info.gart_page_size); /* Queries are normally read by the CPU after * being written by the gpu, hence staging is probably a good |