diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2013-02-26 10:00:29 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2013-02-26 10:00:29 +0000 |
commit | 27c71027b1d76979460ef15bba8e8671e3286a24 (patch) | |
tree | f940edc1b52e4a123b2e748d4b5e4aa3f0f857de | |
parent | 2a6f3989ba2075c322cdf6e33f829f4d5a885be0 (diff) |
sna: Ignore SSE4a - not an Intel ISA!
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
-rw-r--r-- | src/sna/sna.h | 9 | ||||
-rw-r--r-- | src/sna/sna_cpu.c | 5 |
2 files changed, 4 insertions, 10 deletions
diff --git a/src/sna/sna.h b/src/sna/sna.h index fe31b210..f259e2b2 100644 --- a/src/sna/sna.h +++ b/src/sna/sna.h @@ -213,11 +213,10 @@ struct sna { #define SSE2 0x4 #define SSE3 0x8 #define SSSE3 0x10 -#define SSE4a 0x20 -#define SSE4_1 0x40 -#define SSE4_2 0x80 -#define AVX 0x100 -#define AVX2 0x200 +#define SSE4_1 0x20 +#define SSE4_2 0x40 +#define AVX 0x80 +#define AVX2 0x100 unsigned watch_flush; diff --git a/src/sna/sna_cpu.c b/src/sna/sna_cpu.c index d5264641..4dc1144f 100644 --- a/src/sna/sna_cpu.c +++ b/src/sna/sna_cpu.c @@ -70,9 +70,6 @@ unsigned sna_cpu_detect(void) if (edx & bit_SSE2) features |= SSE2; - if (edx & bit_SSE4a) - features |= SSE4a; - __cpuid(7, eax, ebx, ecx, edx); if (eax & bit_AVX2) @@ -100,8 +97,6 @@ char *sna_cpu_features_to_string(unsigned features, char *line) line += sprintf (line, ", sse3"); if (features & SSSE3) line += sprintf (line, ", ssse3"); - if (features & SSE4a) - line += sprintf (line, ", sse4a"); if (features & SSE4_1) line += sprintf (line, ", sse4.1"); if (features & SSE4_2) |