mirror of
https://github.com/izzy2lost/dolphin.git
synced 2026-06-19 01:16:48 -07:00
Fix the fix to AVX support detection
Should be xgetbv(0) & 6 == 6, not just & 6. Thanks to tueidj for pointing this out.
This commit is contained in:
@@ -165,7 +165,7 @@ void CPUInfo::Detect()
|
||||
// - XGETBV result has the XCR bit set.
|
||||
if (((cpu_id[2] >> 28) & 1) && ((cpu_id[2] >> 27) & 1))
|
||||
{
|
||||
if (_xgetbv(_XCR_XFEATURE_ENABLED_MASK) & 0x6)
|
||||
if ((_xgetbv(_XCR_XFEATURE_ENABLED_MASK) & 0x6) == 0x6)
|
||||
bAVX = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user