diff options
author | Marek Olšák <[email protected]> | 2017-01-15 21:50:54 +0100 |
---|---|---|
committer | Marek Olšák <[email protected]> | 2017-01-16 15:35:30 +0100 |
commit | 935d58ac73077ccb164e698088c5b789452b08e9 (patch) | |
tree | 65cb280e07c44d3e3104d49160064d14580405a5 /src/gallium/drivers/radeon/r600_perfcounter.c | |
parent | 1fe7c8d3c9f7ace602627d9574117d5b447accd3 (diff) |
radeonsi: show average results per frame for perf counters in HUD
so that the graphs are independent from FPS.
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/r600_perfcounter.c')
-rw-r--r-- | src/gallium/drivers/radeon/r600_perfcounter.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gallium/drivers/radeon/r600_perfcounter.c b/src/gallium/drivers/radeon/r600_perfcounter.c index 0c55fc2a2cf..4671b2099b2 100644 --- a/src/gallium/drivers/radeon/r600_perfcounter.c +++ b/src/gallium/drivers/radeon/r600_perfcounter.c @@ -545,7 +545,7 @@ int r600_get_perfcounter_info(struct r600_common_screen *screen, info->query_type = R600_QUERY_FIRST_PERFCOUNTER + index; info->max_value.u64 = 0; info->type = PIPE_DRIVER_QUERY_TYPE_UINT64; - info->result_type = PIPE_DRIVER_QUERY_RESULT_TYPE_CUMULATIVE; + info->result_type = PIPE_DRIVER_QUERY_RESULT_TYPE_AVERAGE; info->group_id = base_gid + sub / block->num_selectors; info->flags = PIPE_DRIVER_QUERY_FLAG_BATCH; if (sub > 0 && sub + 1 < block->num_selectors * block->num_groups) |