summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers/radeon/r600_query.h
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-09-14 12:00:50 +0200
committerNicolai Hähnle <[email protected]>2016-09-29 11:14:54 +0200
commit15e26611373e6368eb6dd8365007b208668d0508 (patch)
tree5316e1f1b2728cde34f9dc2f03e19af12181ba93 /src/gallium/drivers/radeon/r600_query.h
parent2c9d546402a4e3fb55bc3a01a5843dfca82b4a6a (diff)
gallium/radeon: implement get_query_result_resource (v2)
v2: fix a comment (Gustaw Smolarczyk) Acked-by: Edward O'Callaghan <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src/gallium/drivers/radeon/r600_query.h')
-rw-r--r--src/gallium/drivers/radeon/r600_query.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gallium/drivers/radeon/r600_query.h b/src/gallium/drivers/radeon/r600_query.h
index 8c637a547fb..14c433d91d8 100644
--- a/src/gallium/drivers/radeon/r600_query.h
+++ b/src/gallium/drivers/radeon/r600_query.h
@@ -34,6 +34,7 @@
struct pipe_context;
struct pipe_query;
+struct pipe_resource;
struct r600_common_context;
struct r600_common_screen;
@@ -88,6 +89,12 @@ struct r600_query_ops {
bool (*get_result)(struct r600_common_context *,
struct r600_query *, bool wait,
union pipe_query_result *result);
+ void (*get_result_resource)(struct r600_common_context *,
+ struct r600_query *, bool wait,
+ enum pipe_query_value_type result_type,
+ int index,
+ struct pipe_resource *resource,
+ unsigned offset);
};
struct r600_query {