Use 3Dnow! x86-64 routines only on processors that support 3Dnow!
authorIan Romanick <ian.d.romanick@intel.com>
Mon, 29 Sep 2008 03:31:46 +0000 (20:31 -0700)
committerIan Romanick <ian.d.romanick@intel.com>
Mon, 29 Sep 2008 03:32:05 +0000 (20:32 -0700)
commit2b8d8989fb6f9c36baf166fc715182a1407ebadb
tree430c8f0b6d57b8ebce7bb6e3915c7d4cb598c39e
parentb5d59222ccbec9db23b6847737765a4dc0d8c47b
Use 3Dnow! x86-64 routines only on processors that support 3Dnow!

Added an x86-64 CPUID function and use it to detect 3Dnow!  If 3Dnow!
is available, use _mesa_3dnow_transform_points4_3d_no_rot,
_mesa_3dnow_transform_points4_perspective,
_mesa_3dnow_transform_points4_2d_no_rot, and _mesa_3dnow_transform_points4_2d.

This fixes long standing bug #8724.
src/mesa/x86-64/x86-64.c
src/mesa/x86-64/xform4.S