aboutsummaryrefslogtreecommitdiffstats
path: root/src/mesa/sparc/sparc.c
diff options
context:
space:
mode:
authorDavid Miller <[email protected]>2009-02-27 02:38:37 -0800
committerBrian Paul <[email protected]>2009-02-27 07:53:37 -0700
commitbde27b0d94dc2b3d0d4656e2c85ecbbd1245b3ac (patch)
treecdf238bfb35763dfa0f28b909f8c30e013af8d0a /src/mesa/sparc/sparc.c
parente1d276f9351a6524f4a48d9606ae531cc04ccad4 (diff)
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 <[email protected]>
Diffstat (limited to 'src/mesa/sparc/sparc.c')
-rw-r--r--src/mesa/sparc/sparc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mesa/sparc/sparc.c b/src/mesa/sparc/sparc.c
index 3bde98e34bc..fafb49b81cd 100644
--- a/src/mesa/sparc/sparc.c
+++ b/src/mesa/sparc/sparc.c
@@ -109,10 +109,10 @@ void _mesa_init_all_sparc_transform_asm(void)
ASSIGN_XFORM_GROUP(sparc, 2)
ASSIGN_XFORM_GROUP(sparc, 3)
ASSIGN_XFORM_GROUP(sparc, 4)
-#if 0
+
_mesa_clip_tab[4] = _mesa_sparc_cliptest_points4;
_mesa_clip_np_tab[4] = _mesa_sparc_cliptest_points4_np;
-#endif
+
#if 0
/* disable these too. See bug 673938 */
_mesa_normal_tab[NORM_TRANSFORM | NORM_NORMALIZE] =