gallium/docs: document get_driver_query_info
authorMarek Olšák <maraeo@gmail.com>
Tue, 26 Mar 2013 00:37:40 +0000 (01:37 +0100)
committerMarek Olšák <maraeo@gmail.com>
Tue, 26 Mar 2013 00:37:40 +0000 (01:37 +0100)
src/gallium/docs/source/screen.rst

index 9b8704904ab8f7f11a18b01466f8079d8bd8603b..8c7e86e1b21ed0511a875390e22f7a5fd270ebb2 100644 (file)
@@ -440,3 +440,15 @@ get_timestamp
 Query a timestamp in nanoseconds. The returned value should match
 PIPE_QUERY_TIMESTAMP. This function returns immediately and doesn't
 wait for rendering to complete (which cannot be achieved with queries).
+
+
+
+get_driver_query_info
+^^^^^^^^^^^^^^^^^^^^^
+
+Return a driver-specific query. If the **info** parameter is NULL,
+the number of available queries is returned.  Otherwise, the driver
+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.