OSDN Git Service

gallium/util: fix nondeterministic avx512 detection
authorTim Rowley <timothy.o.rowley@intel.com>
Wed, 19 Jul 2017 19:18:49 +0000 (14:18 -0500)
committerEmil Velikov <emil.l.velikov@gmail.com>
Wed, 2 Aug 2017 23:19:06 +0000 (00:19 +0100)
commit57bf8e1cd808e7333ca47289621b993bf199ddd6
treeff517d6431fa356395e1f1ddea516f197973cba9
parente0951c67f4401a206db5e94d77dc67dfccf88010
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>
(cherry picked from commit 131b9f644cbe70728ba02878483e22459400bcb4)
src/gallium/auxiliary/util/u_cpu_detect.c