mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-16 13:40:29 +01:00
radeon: scale query buffer size to result size
Performance monitor queries can become very big, especially considering that instances of a block in different shader engines are queried separately. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
592928065c
commit
b9fc01aee7
1 changed files with 1 additions and 1 deletions
|
|
@ -232,7 +232,7 @@ 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 = 4096;
|
||||
unsigned buf_size = MAX2(query->result_size, 4096);
|
||||
|
||||
/* Queries are normally read by the CPU after
|
||||
* being written by the gpu, hence staging is probably a good
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue