radeon: use PIPE_DRIVER_QUERY_FLAG_DONT_LIST for perfcounters
authorNicolai Hähnle <nhaehnle@gmail.com>
Thu, 19 Nov 2015 11:14:03 +0000 (12:14 +0100)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 26 Nov 2015 09:57:44 +0000 (10:57 +0100)
Since the query names are not very enlightening, and there are thousands
of them, GALLIUM_HUD=help should only show the first and last query name
for each hardware block.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/radeon/r600_perfcounter.c

index 7ffb6c265ea20936f1a579d83151a399364b8751..a835aee993bd84640000709efe9f3f63ca39845a 100644 (file)
@@ -547,6 +547,8 @@ int r600_get_perfcounter_info(struct r600_common_screen *screen,
        info->result_type = PIPE_DRIVER_QUERY_RESULT_TYPE_CUMULATIVE;
        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)
+               info->flags |= PIPE_DRIVER_QUERY_FLAG_DONT_LIST;
        return 1;
 }