st/mesa: fix sampler view handling with shared textures v4
authorChristian König <christian.koenig@amd.com>
Sun, 23 Mar 2014 16:01:38 +0000 (17:01 +0100)
committerChristian König <christian.koenig@amd.com>
Wed, 26 Mar 2014 11:06:43 +0000 (12:06 +0100)
commitd117ddbe31fdbe79c871343358e2551593a1b18c
tree4faaedc8f9f2b69cd6dd183d1e3ded084339fd17
parent3b421daf32e5941801e0efb162037de4d8ca1f1d
st/mesa: fix sampler view handling with shared textures v4

Release the references to the sampler views before
destroying the pipe context.

v2: remove TODO and unrelated change
v3: move to st_texture.[ch], rename callback, add comment
v4: fix rebase mess up and add further cleanups

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
Cc: "10.0 10.1" <mesa-stable@lists.freedesktop.org>
src/mesa/state_tracker/st_context.c
src/mesa/state_tracker/st_texture.c
src/mesa/state_tracker/st_texture.h