Commit c0474786 authored by Fiona Glaser's avatar Fiona Glaser

Fix crash on new AMD M300 and similar CPUs

Apparently these CPUs have SSE4a, but not misaligned SSE.
parent 7833e7bb
......@@ -143,13 +143,17 @@ uint32_t x264_cpu_detect( void )
if( ecx&0x00000040 ) /* SSE4a */
{
cpu |= X264_CPU_SSE2_IS_FAST;
cpu |= X264_CPU_SSE_MISALIGN;
cpu |= X264_CPU_LZCNT;
cpu |= X264_CPU_SHUFFLE_IS_FAST;
x264_cpu_mask_misalign_sse();
}
else
cpu |= X264_CPU_SSE2_IS_SLOW;
if( ecx&0x00000080 ) /* Misalign SSE */
{
cpu |= X264_CPU_SSE_MISALIGN;
x264_cpu_mask_misalign_sse();
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment