aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/include/pipe/p_screen.h
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2013-03-21 19:32:24 +0100
committerMarek Olšák <[email protected]>2013-03-26 01:28:19 +0100
commit8ddcd715b7e6ca3d10ddd57ea504e55ca8c8cbd7 (patch)
treea2c4646c8bca3a2394bebe44d638ebae567207e9 /src/gallium/include/pipe/p_screen.h
parent9cec5edea7ab45630186dff053fc66c0e96653a1 (diff)
gallium: add interface for driver queries like performance counters, etc.
The pipe query interface is reused. The list of available queries can be obtained using pipe_screen::get_driver_query_info. Reviewed-by: Brian Paul <[email protected]>
Diffstat (limited to 'src/gallium/include/pipe/p_screen.h')
-rw-r--r--src/gallium/include/pipe/p_screen.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/gallium/include/pipe/p_screen.h b/src/gallium/include/pipe/p_screen.h
index 754cfd7c2e6..c487e8ec8a4 100644
--- a/src/gallium/include/pipe/p_screen.h
+++ b/src/gallium/include/pipe/p_screen.h
@@ -206,6 +206,17 @@ struct pipe_screen {
struct pipe_fence_handle *fence,
uint64_t timeout );
+ /**
+ * Returns a driver-specific query.
+ *
+ * If \p info is NULL, the number of available queries is returned.
+ * Otherwise, the driver query at the specified \p index is returned
+ * in \p info. The function returns non-zero on success.
+ */
+ int (*get_driver_query_info)(struct pipe_screen *screen,
+ unsigned index,
+ struct pipe_driver_query_info *info);
+
};