Bug 15061

Summary: Invalid OPCODE in assembly for x86_64
Product: Mesa Reporter: Mikael Gerdin <mikael.gerdin>
Component: Mesa coreAssignee: mesa-dev
Status: RESOLVED DUPLICATE QA Contact:
Severity: normal    
Priority: medium    
Version: git   
Hardware: x86-64 (AMD64)   
OS: Linux (All)   
Whiteboard:
i915 platform: i915 features:
Attachments: Backtrace and disassembly

Description Mikael Gerdin 2008-03-16 09:58:17 UTC
Created attachment 15185 [details]
Backtrace and disassembly

System: Ubuntu 8.04 development version amd64 arch.
CPU: Intel Core2 Duo
Graphics: Intel i945

The file src/mesa/x86-64/xform4.S in Mesa contains at least one Opcode that is AMD-specific (pfmul, pfadd is 3DNow only). Since x86_64 is no longer AMD-specific this causes an invalid opcode exception and the program crashes.
I'll attach a backtrace + disassembly showing where the problem appears.


To reproduce:
Run any opengl-app that uses _mesa_x86_64_transform_points4_3d_no_rot on a x86-64 machine, with 64-bit userland and an Intel CPU.
Comment 1 Roland Scheidegger 2008-03-16 18:48:07 UTC

*** This bug has been marked as a duplicate of bug 8724 ***
Comment 2 Adam Jackson 2009-08-24 12:29:38 UTC
Mass version move, cvs -> git

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.