[Mesa-dev] [PATCH 3/6] llvmpipe: stop using pipe_sampler_view_release()
Brian Paul
brianp at vmware.com
Fri Mar 8 22:52:11 UTC 2019
This was used to avoid freeing a sampler view which was created by a
context that was already deleted. But the state tracker does not
allow that.
---
src/gallium/drivers/llvmpipe/lp_state_sampler.c | 6 ------
1 file changed, 6 deletions(-)
diff --git a/src/gallium/drivers/llvmpipe/lp_state_sampler.c b/src/gallium/drivers/llvmpipe/lp_state_sampler.c
index c9aba1a..72823e4 100644
--- a/src/gallium/drivers/llvmpipe/lp_state_sampler.c
+++ b/src/gallium/drivers/llvmpipe/lp_state_sampler.c
@@ -123,12 +123,6 @@ llvmpipe_set_sampler_views(struct pipe_context *pipe,
/* set the new sampler views */
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,
- &llvmpipe->sampler_views[shader][start + i]);
/*
* Warn if someone tries to set a view created in a different context
* (which is why we need the hack above in the first place).
--
1.8.5.6
More information about the mesa-dev
mailing list