gallium/util: Correct shift value for TSC feature detection.
authorMaxence Le Doré <maxence.ledore@gmail.com>
Thu, 7 Mar 2013 01:30:03 +0000 (02:30 +0100)
committerMatt Turner <mattst88@gmail.com>
Sat, 9 Mar 2013 05:21:53 +0000 (21:21 -0800)
Reviewed-by: Matt Turner <mattst88@gmail.com>
src/gallium/auxiliary/util/u_cpu_detect.c

index d7f0be40e3dcddd26c285c81305189c110c2b027..03280515be15e3467f03d7c12185feaa4ec35373 100644 (file)
@@ -270,7 +270,7 @@ util_cpu_detect(void)
              util_cpu_caps.x86_cpu_type = 8 + ((regs2[0] >> 20) & 255); /* use extended family (P4, IA64) */
 
          /* general feature flags */
-         util_cpu_caps.has_tsc    = (regs2[3] >>  8) & 1; /* 0x0000010 */
+         util_cpu_caps.has_tsc    = (regs2[3] >>  4) & 1; /* 0x0000010 */
          util_cpu_caps.has_mmx    = (regs2[3] >> 23) & 1; /* 0x0800000 */
          util_cpu_caps.has_sse    = (regs2[3] >> 25) & 1; /* 0x2000000 */
          util_cpu_caps.has_sse2   = (regs2[3] >> 26) & 1; /* 0x4000000 */