Comment 17 for bug 87661

Revision history for this message
Tormod Volden (tormodvolden) wrote :

Does it help to use the environment variable MESA_NO_ASM? That (for instance in /etc/environment) would be an easier workaround then rebuilding everything.

From what I understand (correct me if I am wrong):
The configs makefile magic does what it should do, and as can be verified by the hardy build logs, on i386 the mesa package is compiled with:
 -DUSE_X86_ASM -DUSE_MMX_ASM -DUSE_3DNOW_ASM -DUSE_SSE_ASM
and on amd64 it is compiled with:
 -DUSE_X86_64_ASM
and for instance on ia64 none of this is used.

The mesa x86 code carefully checks for these different flags while building, and probes for processor support when running, but the x86-64 code doesn't use for instance USE_3DNOW_ASM flags and just assumes an AMD64 processor from AMD with all corresponding instructions available.

If we turn off USE_X86_64_ASM in the build, mesa will work on the Intel x86-64 processors, but the AMD64 processors will now run slower, without these optimizations.