gallivm: Translate all util_cpu_caps bits to LLVM attributes.
authorJose Fonseca <jfonseca@vmware.com>
Wed, 21 Oct 2015 16:19:41 +0000 (17:19 +0100)
committerJose Fonseca <jfonseca@vmware.com>
Thu, 22 Oct 2015 10:11:40 +0000 (11:11 +0100)
commit718249843b915decf8fccec92e466ac1a6219934
tree75173402ade6283475456930c3ad84a795ce821c
parent627c15cde46a76e9bce4425646c5caba11788ec4
gallivm: Translate all util_cpu_caps bits to LLVM attributes.

This should prevent disparity between features Mesa and LLVM
believe are supported by the CPU.

http://lists.freedesktop.org/archives/mesa-dev/2015-October/thread.html#96990

Tested on a i7-3720QM w/ LLVM 3.3 and 3.6.

v2: Increase SmallVector initial size as suggested by Gustaw Smolarczyk.

Reviewed-by: Roland Scheidegger <sroland@vmware.com>
CC: "10.6 11.0" <mesa-stable@lists.freedesktop.org>
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp