mesa: add driver interface for writing query results to buffers
authorIlia Mirkin <imirkin@alum.mit.edu>
Wed, 6 May 2015 02:57:41 +0000 (22:57 -0400)
committerIlia Mirkin <imirkin@alum.mit.edu>
Fri, 5 Feb 2016 02:21:30 +0000 (21:21 -0500)
Signed-off-by: Ilia Mirkin <imirkin@alum.mit.edu>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/main/dd.h

index d4378e511591ec543dcae152ca73c5fc8911884b..cfe0a8252c2018ebe794f50d8885e12259c09393 100644 (file)
@@ -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);
    /*@}*/
 
    /**