From 6b5268d202acdc69469bd8c1a2f374ccdf414769 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolai=20H=C3=A4hnle?= Date: Thu, 19 Nov 2015 12:14:03 +0100 Subject: radeon: use PIPE_DRIVER_QUERY_FLAG_DONT_LIST for perfcounters MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/gallium/drivers/radeon/r600_perfcounter.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gallium/drivers/radeon/r600_perfcounter.c') diff --git a/src/gallium/drivers/radeon/r600_perfcounter.c b/src/gallium/drivers/radeon/r600_perfcounter.c index 7ffb6c2..a835aee 100644 --- a/src/gallium/drivers/radeon/r600_perfcounter.c +++ b/src/gallium/drivers/radeon/r600_perfcounter.c @@ -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; } -- cgit v1.1