summaryrefslogtreecommitdiffstats
path: root/src/gallium/auxiliary
diff options
context:
space:
mode:
authorBrian Paul <[email protected]>2019-03-08 15:36:04 -0700
committerBrian Paul <[email protected]>2019-03-17 20:07:22 -0600
commitf7332fbc08c18b2f2b65b28873d6dfddb5f02568 (patch)
tree63cc75d9e7b5fb306a2bb5057b5daf01e1b4b781 /src/gallium/auxiliary
parentc473090b099bd2100363cb672e56edeb8579aeb5 (diff)
gallium/util: remove pipe_sampler_view_release()
It's no longer used. Reviewed-by: Roland Scheidegger <[email protected]> Reviewed-by: Neha Bhende <[email protected]> Reviewed-by: Mathias Fröhlich <[email protected]> Reviewed-By: Jose Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r--src/gallium/auxiliary/util/u_inlines.h20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/gallium/auxiliary/util/u_inlines.h b/src/gallium/auxiliary/util/u_inlines.h
index fa1e920b509..567d3d0c542 100644
--- a/src/gallium/auxiliary/util/u_inlines.h
+++ b/src/gallium/auxiliary/util/u_inlines.h
@@ -192,26 +192,6 @@ pipe_sampler_view_reference(struct pipe_sampler_view **dst,
*dst = src;
}
-/**
- * Similar to pipe_sampler_view_reference() but always set the pointer to
- * NULL and pass in the current context explicitly.
- *
- * If *ptr is non-NULL, it may refer to a view that was created in a different
- * context (however, that context must still be alive).
- */
-static inline void
-pipe_sampler_view_release(struct pipe_context *ctx,
- struct pipe_sampler_view **ptr)
-{
- struct pipe_sampler_view *old_view = *ptr;
-
- if (pipe_reference_described(&old_view->reference, NULL,
- (debug_reference_descriptor)debug_describe_sampler_view)) {
- ctx->sampler_view_destroy(ctx, old_view);
- }
- *ptr = NULL;
-}
-
static inline void
pipe_so_target_reference(struct pipe_stream_output_target **dst,
struct pipe_stream_output_target *src)