File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -429,7 +429,7 @@ void ffCPUDetectByCpuid(FFCPUResult* cpu)
429
429
430
430
// ARMv8.4-A
431
431
// My CPU (Apple M1 Pro in VM) does support LSE2, but Windows doesn't detect it for some reason
432
- // bool has_lse2 = IsProcessorFeaturePresent(PF_ARM_LSE2_AVAILABLE); // Large System Extensions version 2, optional from v8.2
432
+ bool has_lse2 = IsProcessorFeaturePresent (PF_ARM_LSE2_AVAILABLE ); // Large System Extensions version 2, optional from v8.2
433
433
bool has_dp = IsProcessorFeaturePresent (PF_ARM_V82_DP_INSTRUCTIONS_AVAILABLE ); // DotProd, optional from v8.1 (*)
434
434
435
435
// ARMv9.0-A
@@ -475,7 +475,7 @@ void ffCPUDetectByCpuid(FFCPUResult* cpu)
475
475
cpu -> march = "ARMv8.7-A" ;
476
476
} else if (has_i8mm && has_bf16 ) {
477
477
cpu -> march = "ARMv8.6-A" ;
478
- } else if (has_dp ) {
478
+ } else if (has_dp && has_lse2 ) {
479
479
cpu -> march = "ARMv8.4-A" ;
480
480
} else if (has_lrcpc && has_jscvt ) {
481
481
cpu -> march = "ARMv8.3-A" ;
You can’t perform that action at this time.
0 commit comments