[Mesa-dev] [PATCH 7/8] i915g: remove calls to pipe_sampler_view_release()
Brian Paul
brianp at vmware.com
Thu Mar 14 19:37:15 UTC 2019
As with previous patches for svga, llvmpipe, swr drivers.
Compile tested only.
---
src/gallium/drivers/i915/i915_state.c | 10 ++--------
1 file changed, 2 insertions(+), 8 deletions(-)
diff --git a/src/gallium/drivers/i915/i915_state.c b/src/gallium/drivers/i915/i915_state.c
index ddc2709..03d218e 100644
--- a/src/gallium/drivers/i915/i915_state.c
+++ b/src/gallium/drivers/i915/i915_state.c
@@ -745,17 +745,11 @@ static void i915_set_fragment_sampler_views(struct pipe_context *pipe,
return;
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, &i915->fragment_sampler_views[i]);
- pipe_sampler_view_reference(&i915->fragment_sampler_views[i],
- views[i]);
+ pipe_sampler_view_reference(&i915->fragment_sampler_views[i], views[i]);
}
for (i = num; i < i915->num_fragment_sampler_views; i++)
- pipe_sampler_view_release(pipe, &i915->fragment_sampler_views[i]);
+ pipe_sampler_view_reference(&i915->fragment_sampler_views[i], NULL);
i915->num_fragment_sampler_views = num;
--
1.8.5.6
More information about the mesa-dev
mailing list