Mesa (main): trace: Fix framebuffer state serialization.

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Tue Jun 28 10:44:29 UTC 2022


Module: Mesa
Branch: main
Commit: b78caa7f7d65050c1f2e9d05652a446868a1565d
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=b78caa7f7d65050c1f2e9d05652a446868a1565d

Author: Jose Fonseca <jfonseca at vmware.com>
Date:   Thu Jun 16 09:27:33 2022 +0100

trace: Fix framebuffer state serialization.

Ensure the argument name is serialized "state" not, "&tr_ctx->unwrapped_state".

Reviewed-by: Brian Paul <brianp at vmware.com>
Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Reviewed-By: Mike Blumenkrantz <michael.blumenkrantz at gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/17107>

---

 src/gallium/auxiliary/driver_trace/tr_context.c | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/src/gallium/auxiliary/driver_trace/tr_context.c b/src/gallium/auxiliary/driver_trace/tr_context.c
index 35d99174920..b32a1ec30f1 100644
--- a/src/gallium/auxiliary/driver_trace/tr_context.c
+++ b/src/gallium/auxiliary/driver_trace/tr_context.c
@@ -96,14 +96,15 @@ dump_fb_state(struct trace_context *tr_ctx,
               bool deep)
 {
    struct pipe_context *pipe = tr_ctx->pipe;
+   struct pipe_framebuffer_state *state = &tr_ctx->unwrapped_state;
 
    trace_dump_call_begin("pipe_context", method);
 
    trace_dump_arg(ptr, pipe);
    if (deep)
-      trace_dump_arg(framebuffer_state_deep, &tr_ctx->unwrapped_state);
+      trace_dump_arg(framebuffer_state_deep, state);
    else
-      trace_dump_arg(framebuffer_state, &tr_ctx->unwrapped_state);
+      trace_dump_arg(framebuffer_state, state);
    trace_dump_call_end();
 
    tr_ctx->seen_fb_state = true;



More information about the mesa-commit mailing list