st/mesa: initialize affected_states and uniform storage earlier in deserialize
authorMarek Olšák <marek.olsak@amd.com>
Sat, 2 Nov 2019 02:09:23 +0000 (22:09 -0400)
committerMarek Olšák <marek.olsak@amd.com>
Tue, 19 Nov 2019 23:02:06 +0000 (18:02 -0500)
commitf71e93db0ab2d00602fe5235fad6583887ffd754
tree973f17f9410762c57ff6153b5954f2cfed3d7765
parent60398e2d45f602fb3bf3a6cf770f4e26eee50587
st/mesa: initialize affected_states and uniform storage earlier in deserialize

This matches the uncached codepath.

affected_states was used before initialization, which was technically
a bug, but probably not reproducible due to _NEW_PROGRAM rebinding
everything.

Acked-by: Pierre-Eric Pelloux-Prayer <pierre-eric.pelloux-prayer@amd.com>
src/mesa/state_tracker/st_shader_cache.c