gallivm: disable avx512 features
authorRoland Scheidegger <sroland@vmware.com>
Sat, 7 May 2016 22:40:07 +0000 (00:40 +0200)
committerRoland Scheidegger <sroland@vmware.com>
Tue, 10 May 2016 15:08:16 +0000 (17:08 +0200)
commit8b66e2647d5e36e318177a460e6e586d6ca8c36b
tree4613d61ac1904a08c21f5ffc22732db5661374f5
parent94e8653a3bb9044847451b8a202da07d51adcc3a
gallivm: disable avx512 features

We don't target this yet, and some llvm versions incorrectly enable it based
on cpu string, causing crashes.
(Albeit this is a losing battle, it is pretty much guaranteed when the next
new feature comes along llvm will mistakenly enable it on some future cpu,
thus we would have to proactively disable all new features as llvm adds them.)

This should fix https://bugs.freedesktop.org/show_bug.cgi?id=94291 (untested)

Tested-by: Timo Aaltonen <tjaalton@ubuntu.com>
Reviewed-by: Jose Fonseca <jfonseca@vmware.com
CC: <mesa-stable@lists.freedesktop.org>
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp