summaryrefslogtreecommitdiffstats
path: root/src/mesa/main/dd.h
diff options
context:
space:
mode:
authorIlia Mirkin <[email protected]>2015-05-05 22:57:41 -0400
committerIlia Mirkin <[email protected]>2016-02-04 21:21:30 -0500
commit7c3f4b2fd8630aafef491aa7d068f65f05a38285 (patch)
treea153f77421f1c4585d0ab96dcee662a275b7d6fb /src/mesa/main/dd.h
parent3efcd4df014a6a083d48a22cb1fe03828abdf1bc (diff)
mesa: add driver interface for writing query results to buffers
Signed-off-by: Ilia Mirkin <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/mesa/main/dd.h')
-rw-r--r--src/mesa/main/dd.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/mesa/main/dd.h b/src/mesa/main/dd.h
index d4378e51159..cfe0a8252c2 100644
--- a/src/mesa/main/dd.h
+++ b/src/mesa/main/dd.h
@@ -726,6 +726,15 @@ struct dd_function_table {
void (*EndQuery)(struct gl_context *ctx, struct gl_query_object *q);
void (*CheckQuery)(struct gl_context *ctx, struct gl_query_object *q);
void (*WaitQuery)(struct gl_context *ctx, struct gl_query_object *q);
+ /*
+ * \pname the value requested to be written (GL_QUERY_RESULT, etc)
+ * \ptype the type of the value requested to be written:
+ * GL_UNSIGNED_INT, GL_UNSIGNED_INT64_ARB,
+ * GL_INT, GL_INT64_ARB
+ */
+ void (*StoreQueryResult)(struct gl_context *ctx, struct gl_query_object *q,
+ struct gl_buffer_object *buf, intptr_t offset,
+ GLenum pname, GLenum ptype);
/*@}*/
/**