Module: Mesa Branch: main Commit: 887b838632b3f4eb438ea13bc7aa6f1edb3ca9c5 URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=887b838632b3f4eb438ea13bc7aa6f1edb3ca9c5
Author: Thomas H.P. Andersen <[email protected]> Date: Sat Dec 18 20:26:30 2021 +0100 gallium/u_threaded: drop unused function tc_drop_sampler_view_reference is unused. It was introduced in 340703e0 and its last usage was dropped in bb89cf4bf39 Fixes a compile warning with clang Reviewed-by: Emma Anholt <[email protected]> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/14252> --- 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 dd45bbf58e3..dfb3a5d2031 100644 --- a/src/gallium/auxiliary/util/u_threaded_context.c +++ b/src/gallium/auxiliary/util/u_threaded_context.c @@ -159,14 +159,6 @@ tc_drop_surface_reference(struct pipe_surface *dst) dst->context->surface_destroy(dst->context, dst); } -/* Unreference dst but don't touch the dst pointer. */ -static inline void -tc_drop_sampler_view_reference(struct pipe_sampler_view *dst) -{ - if (pipe_reference(&dst->reference, NULL)) /* only decrement refcount */ - dst->context->sampler_view_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)
