summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon
diff options
context:
space:
mode:
authorNicolai Hähnle <nicolai.haehnle@amd.com>2016-09-27 16:52:42 +0200
committerNicolai Hähnle <nicolai.haehnle@amd.com>2016-09-29 11:24:56 +0200
commite4b585f00954538a64d55daa6170507ee4f30126 (patch)
tree69274bb3dccb36617915aa433c573336a48df2e0 /src/gallium/drivers/radeon
parentde84e99e454adede4f95c1cfd59f24c9dcc4e73d (diff)
downloadexternal_mesa3d-e4b585f00954538a64d55daa6170507ee4f30126.zip
external_mesa3d-e4b585f00954538a64d55daa6170507ee4f30126.tar.gz
external_mesa3d-e4b585f00954538a64d55daa6170507ee4f30126.tar.bz2
gallium/radeon: use smaller buffers for query results
Most of the time, even the 512 bytes that we now get is more than sufficient (pipeline stats queries are the largest at 184 bytes per shot). Reviewed-by: Marek Olšák <marek.olsak@amd.com>
Diffstat (limited to 'src/gallium/drivers/radeon')
-rw-r--r--src/gallium/drivers/radeon/r600_query.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/r600_query.c b/src/gallium/drivers/radeon/r600_query.c
index 958cef9..429ea6a 100644
--- a/src/gallium/drivers/radeon/r600_query.c
+++ b/src/gallium/drivers/radeon/r600_query.c
@@ -331,7 +331,7 @@ static struct r600_resource *r600_new_query_buffer(struct r600_common_context *c
struct r600_query_hw *query)
{
unsigned buf_size = MAX2(query->result_size,
- ctx->screen->info.gart_page_size);
+ ctx->screen->info.min_alloc_size);
/* Queries are normally read by the CPU after
* being written by the gpu, hence staging is probably a good