aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorNicolai Hähnle <[email protected]>2016-09-30 12:53:00 +0200
committerNicolai Hähnle <[email protected]>2016-10-05 15:51:47 +0200
commit07bea09c643b15307dc4282332291514276640fd (patch)
tree5fd3c557310fd151327f9bacc3daf92ec5ae5bd1 /src
parent1a3c75e30ecb343a990823a838356c063652c237 (diff)
ddebug: add pass-through of set_device_reset_callback
Reviewed-by: Edward O'Callaghan <[email protected]> Reviewed-by: Marek Olšák <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/gallium/drivers/ddebug/dd_context.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/gallium/drivers/ddebug/dd_context.c b/src/gallium/drivers/ddebug/dd_context.c
index 4bcbbff2307..edcbf2cdfec 100644
--- a/src/gallium/drivers/ddebug/dd_context.c
+++ b/src/gallium/drivers/ddebug/dd_context.c
@@ -720,6 +720,15 @@ dd_context_get_device_reset_status(struct pipe_context *_pipe)
}
static void
+dd_context_set_device_reset_callback(struct pipe_context *_pipe,
+ const struct pipe_device_reset_callback *cb)
+{
+ struct pipe_context *pipe = dd_context(_pipe)->pipe;
+
+ return pipe->set_device_reset_callback(pipe, cb);
+}
+
+static void
dd_context_emit_string_marker(struct pipe_context *_pipe,
const char *string, int len)
{
@@ -835,6 +844,7 @@ dd_context_create(struct dd_screen *dscreen, struct pipe_context *pipe)
CTX_INIT(get_sample_position);
CTX_INIT(invalidate_resource);
CTX_INIT(get_device_reset_status);
+ CTX_INIT(set_device_reset_callback);
CTX_INIT(dump_debug_state);
CTX_INIT(emit_string_marker);