ddebug: add pass-through of set_device_reset_callback
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Fri, 30 Sep 2016 10:53:00 +0000 (12:53 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Wed, 5 Oct 2016 13:51:47 +0000 (15:51 +0200)
Reviewed-by: Edward O'Callaghan <funfunctor@folklore1984.net>
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/gallium/drivers/ddebug/dd_context.c

index 4bcbbff230761242a0b1ee5d684ba57866fe08f2..edcbf2cdfecd28cf70ba2364086e0fbb4f16d301 100644 (file)
@@ -719,6 +719,15 @@ dd_context_get_device_reset_status(struct pipe_context *_pipe)
    return pipe->get_device_reset_status(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);