gallium: add pipe_screen::get_driver_query_group_info
Driver queries are organized as a single hierarchy where queries are categorized into groups. Each group has a list of queries and a maximum number of queries that can be sampled. The list of available groups can be obtained using pipe_screen::get_driver_query_group_info. This will be used by GL_AMD_performance monitor. v2: add group type (CPU/GPU) Signed-off-by: Samuel Pitoiset <samuel.pitoiset@gmail.com> Reviewed-by: Martin Peres <martin.peres@free.fr>
This commit is contained in:

committed by
Martin Peres

parent
ce01c0af70
commit
f137f5c691
@@ -588,3 +588,13 @@ query at the specified **index** is returned in **info**.
|
||||
The function returns non-zero on success.
|
||||
The driver-specific query is described with the pipe_driver_query_info
|
||||
structure.
|
||||
|
||||
get_driver_query_group_info
|
||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
|
||||
Return a driver-specific query group. If the **info** parameter is NULL,
|
||||
the number of available groups is returned. Otherwise, the driver
|
||||
query group at the specified **index** is returned in **info**.
|
||||
The function returns non-zero on success.
|
||||
The driver-specific query group is described with the
|
||||
pipe_driver_query_group_info structure.
|
||||
|
Reference in New Issue
Block a user