gallium/util: fix nondeterministic avx512 detection
authorTim Rowley <timothy.o.rowley@intel.com>
Wed, 19 Jul 2017 19:18:49 +0000 (14:18 -0500)
committerTim Rowley <timothy.o.rowley@intel.com>
Wed, 19 Jul 2017 20:12:07 +0000 (15:12 -0500)
commit131b9f644cbe70728ba02878483e22459400bcb4
treed0d7ae4efdbc7a0caabfdaa3e24ab8db5a35a115
parent19c101f704b609eb76d24db230b706a48db155a6
gallium/util: fix nondeterministic avx512 detection

cpuid.7 requires cx=0 to select the extended feature leaf.

avx512 detection was using the non-indexed cpuid resulting
in random non-detection of avx512.

Cc: mesa-stable@lists.freedesktop.org
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
src/gallium/auxiliary/util/u_cpu_detect.c