Re: [Mesa-dev] [PATCH 8/8] gallium/util: remove pipe_sampler_view_release()
This looks all good to me. For the series: Reviewed-by: Roland Scheidegger Am 14.03.19 um 20:37 schrieb Brian Paul: > It's no longer used. > --- > src/gallium/auxiliary/util/u_inlines.h | 20 > 1 file changed, 20 deletions(-) > > diff --git a/src/gallium/auxiliary/util/u_inlines.h > b/src/gallium/auxiliary/util/u_inlines.h > index fa1e920..567d3d0 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(_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) > ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev
Re: [Mesa-dev] [PATCH 8/8] gallium/util: remove pipe_sampler_view_release()
Looks great! For series, Reviewed-by: Neha Bhende Regards, Neha From: Brian Paul Sent: Thursday, March 14, 2019 12:37 PM To: mesa-dev@lists.freedesktop.org Cc: Neha Bhende; Jose Fonseca; Roland Scheidegger; Mathias Fröhlich Subject: [PATCH 8/8] gallium/util: remove pipe_sampler_view_release() It's no longer used. --- src/gallium/auxiliary/util/u_inlines.h | 20 1 file changed, 20 deletions(-) diff --git a/src/gallium/auxiliary/util/u_inlines.h b/src/gallium/auxiliary/util/u_inlines.h index fa1e920..567d3d0 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(_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) -- 1.8.5.6 ___ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev