[Mesa-dev] [PATCH 1/2] radeon: Provision a query_ops callback, get_query_result_resource()
Edward O'Callaghan
eocallaghan at alterapraxis.com
Sat Apr 9 05:13:35 UTC 2016
ARB_query_buffer_object requires us to provide a query_ops
callback for statistics about the operation in the OpenGL pipeline.
Signed-off-by: Edward O'Callaghan <eocallaghan at alterapraxis.com>
---
src/gallium/drivers/radeon/r600_query.h | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/src/gallium/drivers/radeon/r600_query.h b/src/gallium/drivers/radeon/r600_query.h
index 8b2c4e3..b3d4501 100644
--- a/src/gallium/drivers/radeon/r600_query.h
+++ b/src/gallium/drivers/radeon/r600_query.h
@@ -73,6 +73,11 @@ struct r600_query_ops {
boolean (*get_result)(struct r600_common_context *,
struct r600_query *, boolean wait,
union pipe_query_result *result);
+ void (*get_query_result_resource)(struct r600_common_context *,
+ struct r600_query *, boolean wait,
+ enum pipe_query_value_type result_type,
+ int index, struct pipe_resource *resource,
+ unsigned offset);
};
struct r600_query {
--
2.5.5
More information about the mesa-dev
mailing list