xf86-video-intel: src/sna/sna_cpu.c

Chris Wilson ickle at kemper.freedesktop.org
Wed Feb 27 14:27:13 PST 2013


 src/sna/sna_cpu.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a0a2faefdefbea63669dfeb49f7e701196ab5631
Author: Chris Wilson <chris at chris-wilson.co.uk>
Date:   Wed Feb 27 22:26:19 2013 +0000

    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 at chris-wilson.co.uk>

diff --git a/src/sna/sna_cpu.c b/src/sna/sna_cpu.c
index ce69a39..9e3d965 100644
--- a/src/sna/sna_cpu.c
+++ b/src/sna/sna_cpu.c
@@ -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;
 	}


More information about the xorg-commit mailing list