mesa: Fix Sparc cliptest asm code and re-enable.
authorDavid Miller <davem@davemloft.net>
Fri, 27 Feb 2009 10:38:37 +0000 (02:38 -0800)
committerBrian Paul <brianp@vmware.com>
Fri, 27 Feb 2009 14:53:37 +0000 (07:53 -0700)
commitbde27b0d94dc2b3d0d4656e2c85ecbbd1245b3ac
treecdf238bfb35763dfa0f28b909f8c30e013af8d0a
parente1d276f9351a6524f4a48d9606ae531cc04ccad4
mesa: Fix Sparc cliptest asm code and re-enable.

Stop using register %g7 since that is used by the "system" (ie. the
pthread implementation makes use of it).

Also, the projection vector can be NULL and we shouldn't try to access
it at all in _mesa_sparc_cliptest_points4_np().  ioquake3 would crash
due to this bug.

Finally, unconditionally emit the register directives and re-enable in
_mesa_init_all_sparc_transform_asm().

Signed-off-by: David S. Miller <davem@davemloft.net>
src/mesa/sparc/clip.S
src/mesa/sparc/sparc.c