sna: Fix syntax for __get_cpuid()
It is a function not a macro like cpuid() and takes pointers to its arguments! Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
bfc1fda87f
commit
a0a2faefde
|
|
@ -44,7 +44,7 @@ unsigned sna_cpu_detect(void)
|
|||
unsigned int eax, ebx, ecx, edx;
|
||||
unsigned features = 0;
|
||||
|
||||
if (__get_cpuid(1, eax, ebx, ecx, edx)) {
|
||||
if (__get_cpuid(1, &eax, &ebx, &ecx, &edx)) {
|
||||
if (eax & bit_SSE3)
|
||||
features |= SSE3;
|
||||
|
||||
|
|
@ -70,7 +70,7 @@ unsigned sna_cpu_detect(void)
|
|||
features |= SSE2;
|
||||
}
|
||||
|
||||
if (__get_cpuid(7, eax, ebx, ecx, edx)) {
|
||||
if (__get_cpuid(7, &eax, &ebx, &ecx, &edx)) {
|
||||
if (eax & bit_AVX2)
|
||||
features |= AVX2;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue