:
# /etc/X11/Xsession.d/65mesa-check-x86-64

# This file is sourced by Xsession(5), not executed.

# If we are running the 64-bit mesa code, we need to disable ASM
# optimizations if we are on a non-AMD processor without 3dnow instructions
# (until this get fixed in the mesa libraries)

if [ `dpkg --print-architecture` = "amd64" ] &&
   ! grep -q "^flags.*3dnow" /proc/cpuinfo
then
      MESA_NO_ASM=1
      export MESA_NO_ASM
fi
