Added few more stubs so that control reaches to DestroyDevice().
[mesa.git] / src / mesa / x86 / x86_xform4.S
index a5c1c1c4b036dbaf13c60ab27dc9775450e3f094..f6db5e3165b420419f578b86a138f0067c244575 100644 (file)
@@ -1,8 +1,6 @@
-/* $Id: x86_xform4.S,v 1.2 2002/03/07 21:40:08 brianp Exp $ */
 
 /*
  * Mesa 3-D graphics library
- * Version:  3.5
  *
  * Copyright (C) 1999-2001  Brian Paul   All Rights Reserved.
  *
  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
  * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
- * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
- * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
- * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
+ * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
+ * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
+ * OTHER DEALINGS IN THE SOFTWARE.
  */
 
 /*
@@ -30,7 +29,9 @@
  * in there will break the build on some platforms.
  */
 
-#include "matypes.h"
+#include "assyntax.h"
+#define MATH_ASM_PTR_SIZE 4
+#include "math/m_vector_asm.h"
 #include "xform_args.h"
 
        SEG_TEXT
@@ -66,6 +67,7 @@
 
 ALIGNTEXT16
 GLOBL GLNAME( _mesa_x86_transform_points4_general )
+HIDDEN(_mesa_x86_transform_points4_general)
 GLNAME( _mesa_x86_transform_points4_general ):
 
 #define FRAME_OFFSET 8
@@ -179,6 +181,7 @@ LLBL(x86_p4_gr_done):
 
 ALIGNTEXT16
 GLOBL GLNAME( _mesa_x86_transform_points4_perspective )
+HIDDEN(_mesa_x86_transform_points4_perspective)
 GLNAME( _mesa_x86_transform_points4_perspective ):
 
 #define FRAME_OFFSET 12
@@ -261,6 +264,7 @@ LLBL(x86_p4_pr_done):
 
 ALIGNTEXT16
 GLOBL GLNAME( _mesa_x86_transform_points4_3d )
+HIDDEN(_mesa_x86_transform_points4_3d)
 GLNAME( _mesa_x86_transform_points4_3d ):
 
 #define FRAME_OFFSET 12
@@ -363,6 +367,7 @@ LLBL(x86_p4_3dr_done):
 
 ALIGNTEXT16
 GLOBL GLNAME(_mesa_x86_transform_points4_3d_no_rot)
+HIDDEN(_mesa_x86_transform_points4_3d_no_rot)
 GLNAME(_mesa_x86_transform_points4_3d_no_rot):
 
 #define FRAME_OFFSET 12
@@ -443,6 +448,7 @@ LLBL(x86_p4_3dnrr_done):
 
 ALIGNTEXT16
 GLOBL GLNAME( _mesa_x86_transform_points4_2d )
+HIDDEN(_mesa_x86_transform_points4_2d)
 GLNAME( _mesa_x86_transform_points4_2d ):
 
 #define FRAME_OFFSET 16
@@ -528,6 +534,7 @@ LLBL(x86_p4_2dr_done):
 
 ALIGNTEXT16
 GLOBL GLNAME( _mesa_x86_transform_points4_2d_no_rot )
+HIDDEN(_mesa_x86_transform_points4_2d_no_rot)
 GLNAME( _mesa_x86_transform_points4_2d_no_rot ):
 
 #define FRAME_OFFSET 16
@@ -605,6 +612,7 @@ LLBL(x86_p4_2dnrr_done):
 
 ALIGNTEXT16
 GLOBL GLNAME( _mesa_x86_transform_points4_identity )
+HIDDEN(_mesa_x86_transform_points4_identity)
 GLNAME( _mesa_x86_transform_points4_identity ):
 
 #define FRAME_OFFSET 12
@@ -664,3 +672,7 @@ LLBL(x86_p4_ir_done):
        POP_L( EDI )
        POP_L( ESI )
        RET
+       
+#if defined (__ELF__) && defined (__linux__)
+       .section .note.GNU-stack,"",%progbits
+#endif