aboutsummaryrefslogtreecommitdiffstats
path: root/src/gallium/include/pipe/p_defines.h
diff options
context:
space:
mode:
authorZack Rusin <[email protected]>2010-06-07 12:14:56 -0400
committerZack Rusin <[email protected]>2010-06-08 06:28:11 -0400
commitbe7d8ddf0c0a293ee94db360a44561beb10e62f9 (patch)
tree1e437b13943146fbe769b45373eedd156e99d12c /src/gallium/include/pipe/p_defines.h
parent34f7681669987bc804f4603463f2fa3f82bc844f (diff)
gallium: add basic support for stream output queries
Diffstat (limited to 'src/gallium/include/pipe/p_defines.h')
-rw-r--r--src/gallium/include/pipe/p_defines.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gallium/include/pipe/p_defines.h b/src/gallium/include/pipe/p_defines.h
index f47db407dc1..85551cac25a 100644
--- a/src/gallium/include/pipe/p_defines.h
+++ b/src/gallium/include/pipe/p_defines.h
@@ -381,7 +381,8 @@ enum pipe_transfer_usage {
#define PIPE_QUERY_PRIMITIVES_GENERATED 1
#define PIPE_QUERY_PRIMITIVES_EMITTED 2
#define PIPE_QUERY_TIME_ELAPSED 3
-#define PIPE_QUERY_TYPES 4
+#define PIPE_QUERY_SO_STATISTICS 5
+#define PIPE_QUERY_TYPES 6
/**
@@ -498,6 +499,14 @@ enum pipe_cap {
#define PIPE_REFERENCED_FOR_READ (1 << 0)
#define PIPE_REFERENCED_FOR_WRITE (1 << 1)
+/**
+ * Composite query types
+ */
+struct pipe_query_data_so_statistics
+{
+ uint64_t num_primitives_written;
+ uint64_t primitives_storage_needed;
+};
#ifdef __cplusplus
}