st/mesa: use pipe_sampler_view_release for releasing sampler views
authorMarek Olšák <marek.olsak@amd.com>
Thu, 16 Oct 2014 21:19:59 +0000 (23:19 +0200)
committerMarek Olšák <marek.olsak@amd.com>
Thu, 16 Oct 2014 21:31:20 +0000 (23:31 +0200)
commit833d698ad5d7dc7598b798653e1413f4379ec476
tree7873ec2270c92ba66605dd951b0a201d5b75c5e9
parent63c6509ad2e2707cca0ff3ba6fbc5582c3e2eea5
st/mesa: use pipe_sampler_view_release for releasing sampler views

This fixes a crash when exiting Firefox. I have really no idea how Firefox
does it. It seems to involve multiple contexts and multithreading.

v2: added an XXX comment

Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=81680

Acked by Christian König.
Cc: 10.2 10.3 <mesa-stable@lists.freedesktop.org>
Tested-by: Benjamin Bellec <b.bellec@gmail.com>
src/mesa/state_tracker/st_cb_eglimage.c
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_gen_mipmap.c
src/mesa/state_tracker/st_texture.c
src/mesa/state_tracker/st_texture.h
src/mesa/state_tracker/st_vdpau.c