From: Brian Paul Date: Fri, 8 Mar 2019 22:19:02 +0000 (-0700) Subject: swr: remove call to pipe_sampler_view_release() X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=768b770a86d025b0d118fc989f6cd46726653ac4;p=mesa.git swr: remove call to pipe_sampler_view_release() As with svga, llvmpipe drivers in previous patches. Compile tested only. Reviewed-by: Roland Scheidegger Reviewed-by: Neha Bhende Reviewed-by: Mathias Fröhlich Reviewed-By: Jose Fonseca --- diff --git a/src/gallium/drivers/swr/swr_state.cpp b/src/gallium/drivers/swr/swr_state.cpp index d7baa7127b4..42d196fb3c5 100644 --- a/src/gallium/drivers/swr/swr_state.cpp +++ b/src/gallium/drivers/swr/swr_state.cpp @@ -302,11 +302,6 @@ swr_set_sampler_views(struct pipe_context *pipe, /* set the new sampler views */ ctx->num_sampler_views[shader] = num; for (i = 0; i < num; i++) { - /* Note: we're using pipe_sampler_view_release() here to work around - * a possible crash when the old view belongs to another context that - * was already destroyed. - */ - pipe_sampler_view_release(pipe, &ctx->sampler_views[shader][start + i]); pipe_sampler_view_reference(&ctx->sampler_views[shader][start + i], views[i]); }