mirror of https://github.com/mpv-player/mpv
changed cpudetection code to support newer pentiums
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10014 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
489e551f54
commit
002372c7af
|
@ -929,26 +929,23 @@ static void WINAPI expGetSystemInfo(SYSTEM_INFO* si)
|
||||||
if (gCpuCaps.has3DNow)
|
if (gCpuCaps.has3DNow)
|
||||||
PF[PF_AMD3D_INSTRUCTIONS_AVAILABLE] = TRUE;
|
PF[PF_AMD3D_INSTRUCTIONS_AVAILABLE] = TRUE;
|
||||||
|
|
||||||
switch(gCpuCaps.cpuType)
|
if (gCpuCaps.cpuType == 4)
|
||||||
{
|
{
|
||||||
case CPUTYPE_I686:
|
cachedsi.dwProcessorType = PROCESSOR_INTEL_486;
|
||||||
case CPUTYPE_I586:
|
cachedsi.wProcessorLevel = 4;
|
||||||
cachedsi.dwProcessorType = PROCESSOR_INTEL_PENTIUM;
|
}
|
||||||
cachedsi.wProcessorLevel = 5;
|
else if (gCpuCaps.cpuType > 5)
|
||||||
break;
|
{
|
||||||
case CPUTYPE_I486:
|
cachedsi.dwProcessorType = PROCESSOR_INTEL_PENTIUM;
|
||||||
cachedsi.dwProcessorType = PROCESSOR_INTEL_486;
|
cachedsi.wProcessorLevel = 5;
|
||||||
cachedsi.wProcessorLevel = 4;
|
}
|
||||||
break;
|
else
|
||||||
case CPUTYPE_I386:
|
{
|
||||||
default:
|
cachedsi.dwProcessorType = PROCESSOR_INTEL_386;
|
||||||
cachedsi.dwProcessorType = PROCESSOR_INTEL_386;
|
cachedsi.wProcessorLevel = 3;
|
||||||
cachedsi.wProcessorLevel = 3;
|
|
||||||
break;
|
|
||||||
}
|
}
|
||||||
cachedsi.wProcessorRevision = gCpuCaps.cpuStepping;
|
cachedsi.wProcessorRevision = gCpuCaps.cpuStepping;
|
||||||
cachedsi.dwNumberOfProcessors = 1; /* hardcoded */
|
cachedsi.dwNumberOfProcessors = 1; /* hardcoded */
|
||||||
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue