diff options
author | Zack Rusin <[email protected]> | 2010-06-22 12:14:29 -0400 |
---|---|---|
committer | Zack Rusin <[email protected]> | 2010-06-22 12:58:04 -0400 |
commit | e433b73dd256577b022bf38c8499c7ea4eda9845 (patch) | |
tree | abd1946c1cc80ebace26b608fd1622ab56c34d1e /src/gallium/include/pipe | |
parent | b6c360b46c2b2b1548e2aeaa1a1cd201dfcf82ae (diff) |
gallium: add a timestamp disjoint query
allows application to not only request the frequency of the TIME_ELAPSED
clock but also to detect if that frequency was consistent throughout the
entire bracketed range of graphics commands.
Diffstat (limited to 'src/gallium/include/pipe')
-rw-r--r-- | src/gallium/include/pipe/p_defines.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h index b3a53c262de..3b87d998ceb 100644 --- a/src/gallium/include/pipe/p_defines.h +++ b/src/gallium/include/pipe/p_defines.h @@ -383,7 +383,8 @@ enum pipe_transfer_usage { #define PIPE_QUERY_TIME_ELAPSED 3 #define PIPE_QUERY_SO_STATISTICS 5 #define PIPE_QUERY_GPU_FINISHED 6 -#define PIPE_QUERY_TYPES 7 +#define PIPE_QUERY_TIMESTAMP_DISJOINT 7 +#define PIPE_QUERY_TYPES 8 /** @@ -508,6 +509,11 @@ struct pipe_query_data_so_statistics uint64_t num_primitives_written; uint64_t primitives_storage_needed; }; +struct pipe_query_data_timestamp_disjoint +{ + uint64_t frequency; + boolean disjoint; +}; #ifdef __cplusplus } |