summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2013-03-26 15:13:08 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2013-03-26 15:13:28 +0000
commit86bcf4a9f5dff98eab076df5872c3c412c0c13af (patch)
treec4ec7874050faa4602875cd10ee4f5d13cdbb5a0
parenta5be4210b7e8b4a895a70ba617fda45d2e0188f0 (diff)
sna: AVX2 is in the ebx result of cpuid
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r--src/sna/sna_cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sna/sna_cpu.c b/src/sna/sna_cpu.c
index ef6843fc..13869884 100644
--- a/src/sna/sna_cpu.c
+++ b/src/sna/sna_cpu.c
@@ -71,7 +71,7 @@ unsigned sna_cpu_detect(void)
}
if (__get_cpuid(7, &eax, &ebx, &ecx, &edx)) {
- if (eax & bit_AVX2)
+ if (ebx & bit_AVX2)
features |= AVX2;
}