st/mesa: re-arrange st_finalize_texture
authorNicolai Hähnle <nicolai.haehnle@amd.com>
Sun, 22 Oct 2017 15:38:34 +0000 (17:38 +0200)
committerNicolai Hähnle <nicolai.haehnle@amd.com>
Thu, 9 Nov 2017 10:50:55 +0000 (11:50 +0100)
commit8d20c660a9831c367d98ed2fea25e5276e6466f2
treeafff3de5f94881690804b2eac6ba0646d7f887a7
parent0dcf30e55091a0c78fc84d98f5ea36286f3f1961
st/mesa: re-arrange st_finalize_texture

Move the early-out for surface-based textures earlier. This narrows the
scope of the locking added in a follow-up commit.

Fix one remaining case of initializing a surface-based texture
without properly finalizing it.

Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/mesa/state_tracker/st_cb_texture.c
src/mesa/state_tracker/st_manager.c