Mesa (master): gallium: add pipe_context::set_log_context

Nicolai Hähnle nh at kemper.freedesktop.org
Tue Aug 22 07:59:33 UTC 2017


Module: Mesa
Branch: master
Commit: 1966d9ff412359c4189601231ca9182071bef285
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=1966d9ff412359c4189601231ca9182071bef285

Author: Nicolai Hähnle <nicolai.haehnle at amd.com>
Date:   Fri Aug  4 15:54:41 2017 +0200

gallium: add pipe_context::set_log_context

Reviewed-by: Marek Olšák <marek.olsak at amd.com>

---

 src/gallium/include/pipe/p_context.h | 14 ++++++++++++++
 1 file changed, 14 insertions(+)

diff --git a/src/gallium/include/pipe/p_context.h b/src/gallium/include/pipe/p_context.h
index c2b1ad217c..4609d4dbf2 100644
--- a/src/gallium/include/pipe/p_context.h
+++ b/src/gallium/include/pipe/p_context.h
@@ -75,6 +75,7 @@ struct pipe_viewport_state;
 struct pipe_compute_state;
 union pipe_color_union;
 union pipe_query_result;
+struct u_log_context;
 struct u_upload_mgr;
 
 /**
@@ -749,6 +750,19 @@ struct pipe_context {
                             unsigned flags);
 
    /**
+    * Set the log context to which the driver should write internal debug logs
+    * (internal states, command streams).
+    *
+    * The caller must ensure that the log context is destroyed and reset to
+    * NULL before the pipe context is destroyed, and that log context functions
+    * are only called from the driver thread.
+    *
+    * \param ctx pipe context
+    * \param log logging context
+    */
+   void (*set_log_context)(struct pipe_context *ctx, struct u_log_context *log);
+
+   /**
     * Emit string marker in cmdstream
     */
    void (*emit_string_marker)(struct pipe_context *ctx,




More information about the mesa-commit mailing list