Opened 11 years ago

Closed 11 years ago

#2798 closed bug (duplicate)

Mesa Software Renderer crash with SSE optimization enabled

Reported by: phoudoin Owned by: korli
Priority: normal Milestone: R1
Component: Kits/OpenGL Kit Version: R1/pre-alpha1
Keywords: Cc:
Blocked By: Blocking:
Has a Patch: no Platform: x86

Description

When USE_SSE_ASM is defined in src/kits/opengl/Jamfile and src/add-ons/opengl/mesa_software_renderer/Jamfile to enable Mesa's SSE optimization, GLDirectMode crash at start and GLTeapot crash after a short time.

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 at all in SSE instruction set to dive more. Anyone know if and where to find some MMX/SSE/SSE2/SSE3/SSE4 stress tests that could be run under Haiku?

Full GDB output attached.

Change History (1)

comment:1 by phoudoin, 11 years ago

Resolution: duplicate
Status: newclosed

Duplicate #2799.

(Damned fake disconnection...)

Note: See TracTickets for help on using tickets.