Go to most recent revision | Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1901 | serge | 1 | |
2 | * Mesa 3-D graphics library |
||
3 | * Version: 5.0.1 |
||
4 | * |
||
5 | * Copyright (C) 1999-2003 Brian Paul All Rights Reserved. |
||
6 | * |
||
7 | * Permission is hereby granted, free of charge, to any person obtaining a |
||
8 | * copy of this software and associated documentation files (the "Software"), |
||
9 | * to deal in the Software without restriction, including without limitation |
||
10 | * the rights to use, copy, modify, merge, publish, distribute, sublicense, |
||
11 | * and/or sell copies of the Software, and to permit persons to whom the |
||
12 | * Software is furnished to do so, subject to the following conditions: |
||
13 | * |
||
14 | * The above copyright notice and this permission notice shall be included |
||
15 | * in all copies or substantial portions of the Software. |
||
16 | * |
||
17 | * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS |
||
18 | * OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||
19 | * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL |
||
20 | * BRIAN PAUL BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN |
||
21 | * AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
||
22 | * CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
||
23 | */ |
||
24 | |||
25 | |||
26 | * 3DNow! optimizations contributed by |
||
27 | * Holger Waechtler |
||
28 | */ |
||
29 | |||
30 | |||
31 | #include "main/context.h" |
||
32 | #include "math/m_xform.h" |
||
33 | #include "tnl/t_context.h" |
||
34 | |||
35 | |||
36 | #include "x86_xform.h" |
||
37 | |||
38 | |||
39 | #include "math/m_debug.h" |
||
40 | #endif |
||
41 | |||
42 | |||
43 | |||
44 | DECLARE_XFORM_GROUP( 3dnow, 2 ) |
||
45 | DECLARE_XFORM_GROUP( 3dnow, 3 ) |
||
46 | DECLARE_XFORM_GROUP( 3dnow, 4 ) |
||
47 | |||
48 | |||
49 | |||
50 | |||
51 | |||
52 | _mesa_v16_3dnow_general_xform( GLfloat *first_vert, |
||
53 | const GLfloat *m, |
||
54 | const GLfloat *src, |
||
55 | GLuint src_stride, |
||
56 | GLuint count ); |
||
57 | |||
58 | |||
59 | _mesa_3dnow_project_vertices( GLfloat *first, |
||
60 | GLfloat *last, |
||
61 | const GLfloat *m, |
||
62 | GLuint stride ); |
||
63 | |||
64 | |||
65 | _mesa_3dnow_project_clipped_vertices( GLfloat *first, |
||
66 | GLfloat *last, |
||
67 | const GLfloat *m, |
||
68 | GLuint stride, |
||
69 | const GLubyte *clipmask ); |
||
70 | #endif |
||
71 | |||
72 | |||
73 | |||
74 | { |
||
75 | #ifdef USE_3DNOW_ASM |
||
76 | ASSIGN_XFORM_GROUP( 3dnow, 2 ); |
||
77 | ASSIGN_XFORM_GROUP( 3dnow, 3 ); |
||
78 | ASSIGN_XFORM_GROUP( 3dnow, 4 ); |
||
79 | |||
80 | |||
81 | * bad shading. Disable for now. |
||
82 | ASSIGN_NORM_GROUP( 3dnow ); |
||
83 | */ |
||
84 | |||
85 | |||
86 | _math_test_all_transform_functions( "3DNow!" ); |
||
87 | _math_test_all_normal_transform_functions( "3DNow!" ); |
||
88 | #endif |
||
89 | #endif |
||
90 | } |
||
91 |