st/mesa: minor refactoring of texture/sampler delete code
authorBrian Paul <brianp@vmware.com>
Wed, 6 Mar 2019 23:20:55 +0000 (16:20 -0700)
committerBrian Paul <brianp@vmware.com>
Tue, 12 Mar 2019 02:08:16 +0000 (20:08 -0600)
commit187a527ed762b10e6e3156c678fea7aab0789157
tree6bf0120e121ffb0f9f4495617e99b991adfd910c
parent70a2ede112acb589ee4310a0b3f7476fc1629b51
st/mesa: minor refactoring of texture/sampler delete code

Rename st_texture_free_sampler_views() to
st_delete_texture_sampler_views() to align with
st_DeleteTextureObject(), its only caller.

Move the call to st_texture_release_all_sampler_views() from
st_DeleteTextureObject() to st_delete_texture_sampler_views()
so all the sampler view clean-up code is in one place.

Reviewed-by: Neha Bhende <bhenden@vmware.com>
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_sampler_view.c
src/mesa/state_tracker/st_sampler_view.h