Mesa Software Renderer crash with SSE optimization enabled
|Reported by:||phoudoin||Owned by:||axeld|
When libGL.so and Mesa Software Renderer are built with USE_SSE_ASM defined to enable Mesa's SSE optimization, GLDirectMode crash at start and GLTeapot crash after a short time. Only GLInfo don't crash, but it's expected as it does no GL drawing at all.
The crash is due to an invalid opcode exception:
Thread 334 caused an exception: Invalid opcode exception [...] [Switching to team /boot/beos/demos/GLDirectMode (334) thread GLDirectMode (334)] 0x00846e20 in _mesa_sse_transform_points3_general () from /boot/beos/system/add-ons/opengl/Mesa Software Renderer
Disassembled code show the opcode is movaps (%edx),%xmm0
I'm not fluent in SSE instruction set enough to dive in more. Anyone know if and where to find some MMX/SSE/SSE2/SSE3/SSE4 stress tests that could be run under Haiku?