summaryrefslogtreecommitdiffstats
path: root/src/gallium/drivers
diff options
context:
space:
mode:
authorMarek Olšák <[email protected]>2017-04-16 22:04:57 +0200
committerMarek Olšák <[email protected]>2017-04-25 22:39:31 +0200
commit04d7978b8c09dfbe48c8da53206437168b70f295 (patch)
treeca1b10377393a6d642786121919c525866f19216 /src/gallium/drivers
parent231dfa5a029f99d8bb2d4b0f34915bbc58458f93 (diff)
ddebug: implement get_query_result_resource
Reviewed-by: Nicolai Hähnle <[email protected]>
Diffstat (limited to 'src/gallium/drivers')
-rw-r--r--src/gallium/drivers/ddebug/dd_context.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/gallium/drivers/ddebug/dd_context.c b/src/gallium/drivers/ddebug/dd_context.c
index f9d3de5155a..723e90e0fa5 100644
--- a/src/gallium/drivers/ddebug/dd_context.c
+++ b/src/gallium/drivers/ddebug/dd_context.c
@@ -151,6 +151,21 @@ dd_context_get_query_result(struct pipe_context *_pipe,
}
static void
+dd_context_get_query_result_resource(struct pipe_context *_pipe,
+ struct pipe_query *query,
+ boolean wait,
+ enum pipe_query_value_type result_type,
+ int index,
+ struct pipe_resource *resource,
+ unsigned offset)
+{
+ struct pipe_context *pipe = dd_context(_pipe)->pipe;
+
+ pipe->get_query_result_resource(pipe, dd_query_unwrap(query), wait,
+ result_type, index, resource, offset);
+}
+
+static void
dd_context_set_active_query_state(struct pipe_context *_pipe, boolean enable)
{
struct pipe_context *pipe = dd_context(_pipe)->pipe;
@@ -785,6 +800,7 @@ dd_context_create(struct dd_screen *dscreen, struct pipe_context *pipe)
CTX_INIT(begin_query);
CTX_INIT(end_query);
CTX_INIT(get_query_result);
+ CTX_INIT(get_query_result_resource);
CTX_INIT(set_active_query_state);
CTX_INIT(create_blend_state);
CTX_INIT(bind_blend_state);