Skip to content

swr: Fix crashes on non-AVX hardware

Jan Zielinski requested to merge jzielins/mesa:swr-fix-avx-leak into master

Compilers may use vector instructions in calculating hash values of std::string. This happens usually when high optimization level is enabled. SWR had two static std::map<std::string, T> variables which lead to crashes on non-AVX systems during the initialization of those variables. This commit moves initialization to get* functions so they will only be created when used.

Edited by Jan Zielinski

Merge request reports