Mesa (master): swr: remove call to pipe_sampler_view_release()

GitLab Mirror gitlab-mirror at kemper.freedesktop.org
Mon Mar 18 02:19:20 UTC 2019


Module: Mesa
Branch: master
Commit: 768b770a86d025b0d118fc989f6cd46726653ac4
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=768b770a86d025b0d118fc989f6cd46726653ac4

Author: Brian Paul <brianp at vmware.com>
Date:   Fri Mar  8 15:19:02 2019 -0700

swr: remove call to pipe_sampler_view_release()

As with svga, llvmpipe drivers in previous patches.
Compile tested only.

Reviewed-by: Roland Scheidegger <sroland at vmware.com>
Reviewed-by: Neha Bhende <bhenden at vmware.com>
Reviewed-by: Mathias Fröhlich <Mathias.Froehlich at web.de>
Reviewed-By: Jose Fonseca <jfonseca at vmware.com>

---

 src/gallium/drivers/swr/swr_state.cpp | 5 -----
 1 file changed, 5 deletions(-)

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]);
    }




More information about the mesa-commit mailing list