mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-01-19 00:10:27 +01:00
gallium: add PIPE_DRIVER_QUERY_FLAG_DONT_LIST
This allows the driver to give a hint to the HUD so that GALLIUM_HUD=help is less spammy. Reviewed-by: Marek Olšák <marek.olsak@amd.com>
This commit is contained in:
parent
80a16dece6
commit
f36d9857cd
2 changed files with 12 additions and 1 deletions
|
|
@ -1127,12 +1127,20 @@ print_help(struct pipe_screen *screen)
|
|||
}
|
||||
|
||||
if (screen->get_driver_query_info){
|
||||
boolean skipping = false;
|
||||
struct pipe_driver_query_info info;
|
||||
num_queries = screen->get_driver_query_info(screen, 0, NULL);
|
||||
|
||||
for (i = 0; i < num_queries; i++){
|
||||
screen->get_driver_query_info(screen, i, &info);
|
||||
printf(" %s\n", info.name);
|
||||
if (info.flags & PIPE_DRIVER_QUERY_FLAG_DONT_LIST) {
|
||||
if (!skipping)
|
||||
puts(" ...");
|
||||
skipping = true;
|
||||
} else {
|
||||
printf(" %s\n", info.name);
|
||||
skipping = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -861,6 +861,9 @@ enum pipe_driver_query_result_type
|
|||
*/
|
||||
#define PIPE_DRIVER_QUERY_FLAG_BATCH (1 << 0)
|
||||
|
||||
/* Do not list this query in the HUD. */
|
||||
#define PIPE_DRIVER_QUERY_FLAG_DONT_LIST (1 << 1)
|
||||
|
||||
struct pipe_driver_query_info
|
||||
{
|
||||
const char *name;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue