OSDN Git Service

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)
committerEmil Velikov <emil.l.velikov@gmail.com>
Thu, 5 Nov 2015 14:05:19 +0000 (14:05 +0000)
commit38a8b467cb2404c0fc488dfbf0d9af4af925fa87
treed9faa8df5959b96d6f3349c9e45f4585d85fe5cd
parent2294f6f3112f34c4685586f95cd567ce130ee1ab
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>
(cherry picked from commit 718249843b915decf8fccec92e466ac1a6219934)
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp