radeonsi: show average results per frame for perf counters in HUD
authorMarek Olšák <marek.olsak@amd.com>
Sun, 15 Jan 2017 20:50:54 +0000 (21:50 +0100)
committerMarek Olšák <marek.olsak@amd.com>
Mon, 16 Jan 2017 14:35:30 +0000 (15:35 +0100)
so that the graphs are independent from FPS.

Reviewed-by: Nicolai Hähnle <nicolai.haehnle@amd.com>
src/gallium/drivers/radeon/r600_perfcounter.c

index 0c55fc2a2cfe439b9a567a7a1950f9cdb88211a7..4671b2099b28ec9273e46ef1b5720cd09bde0ab2 100644 (file)
@@ -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)