From 4707e9c8b9d9d8012a7e69ac23d089ccdbd77d30 Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Thu, 13 Mar 2025 12:17:05 -0400 Subject: [PATCH] aux/trace: set sampler_view_release pointer Part-of: --- src/gallium/auxiliary/driver_trace/tr_context.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/gallium/auxiliary/driver_trace/tr_context.c b/src/gallium/auxiliary/driver_trace/tr_context.c index 9d36cb3792c..25f454841fc 100644 --- a/src/gallium/auxiliary/driver_trace/tr_context.c +++ b/src/gallium/auxiliary/driver_trace/tr_context.c @@ -1143,6 +1143,9 @@ static void trace_context_sampler_view_release(struct pipe_context *_pipe, struct pipe_sampler_view *_view) { + if (!_view) + return; + struct trace_context *tr_ctx = trace_context(_pipe); struct trace_sampler_view *tr_view = trace_sampler_view(_view); struct pipe_context *pipe = tr_ctx->pipe; @@ -2587,6 +2590,7 @@ trace_context_create(struct trace_screen *tr_scr, TR_CTX_INIT(set_sampler_views); TR_CTX_INIT(create_sampler_view); TR_CTX_INIT(sampler_view_destroy); + TR_CTX_INIT(sampler_view_release); TR_CTX_INIT(create_surface); TR_CTX_INIT(surface_destroy); TR_CTX_INIT(set_vertex_buffers);