From f1b09f7760e014217eb2008e76248638fc6b94ac Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Mon, 16 Mar 2026 12:17:09 -0400 Subject: [PATCH] tc: delete unused surface ref code MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Reviewed-by: Marek Olšák Part-of: --- src/gallium/auxiliary/util/u_threaded_context.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/gallium/auxiliary/util/u_threaded_context.c b/src/gallium/auxiliary/util/u_threaded_context.c index 0a7b61ec1d2..1640d659fae 100644 --- a/src/gallium/auxiliary/util/u_threaded_context.c +++ b/src/gallium/auxiliary/util/u_threaded_context.c @@ -463,14 +463,6 @@ tc_drop_resource_reference(struct pipe_resource *dst) pipe_resource_destroy(dst); } -/* Unreference dst but don't touch the dst pointer. */ -static inline void -tc_drop_surface_reference(struct pipe_surface *dst) -{ - if (pipe_reference(&dst->reference, NULL)) /* only decrement refcount */ - dst->context->surface_destroy(dst->context, dst); -} - /* Unreference dst but don't touch the dst pointer. */ static inline void tc_drop_so_target_reference(struct pipe_stream_output_target *dst)