st/mesa: improve sampler view handling
authorChristian König <christian.koenig@amd.com>
Tue, 25 Mar 2014 16:31:49 +0000 (17:31 +0100)
committerChristian König <christian.koenig@amd.com>
Fri, 4 Apr 2014 08:25:35 +0000 (10:25 +0200)
commit6c59be7776e4da17119a3fca21a0a568c5c11ea7
tree0ed58e1aef79510c5ef3428f76fa7e65883c0536
parent61bedc3d6b08943f015f9d590c07a6af36c2a92c
st/mesa: improve sampler view handling

Keep a dynamically increasing array of all the views
created for a texture instead of just the last one.

v2: add comments, fix array size calculation,
    release only the first sampler view found

Signed-off-by: Christian König <christian.koenig@amd.com>
Reviewed-by: Brian Paul <brianp@vmware.com>
src/mesa/state_tracker/st_atom_sampler.c
src/mesa/state_tracker/st_atom_texture.c
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