projects
/
mesa.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
auxiliary: Initialize variable.
[mesa.git]
/
src
/
mesa
/
x86-64
/
xform4.S
diff --git
a/src/mesa/x86-64/xform4.S
b/src/mesa/x86-64/xform4.S
index 3f9c9d56ab7dcfdeae89aaa074b15fbd6be3246c..805969127db5f4ed2663b5122099da017f1704b2 100644
(file)
--- a/
src/mesa/x86-64/xform4.S
+++ b/
src/mesa/x86-64/xform4.S
@@
-29,7
+29,22
@@
.text
.align 16
.text
.align 16
+.globl _mesa_x86_64_cpuid
+_mesa_x86_64_cpuid:
+ pushq %rbx
+ movl (%rdi), %eax
+ movl 8(%rdi), %ecx
+
+ cpuid
+
+ movl %ebx, 4(%rdi)
+ movl %eax, (%rdi)
+ movl %ecx, 8(%rdi)
+ movl %edx, 12(%rdi)
+ popq %rbx
+ ret
+.align 16
.globl _mesa_x86_64_transform_points4_general
_mesa_x86_64_transform_points4_general:
/*
.globl _mesa_x86_64_transform_points4_general
_mesa_x86_64_transform_points4_general:
/*
@@
-204,8
+219,8
@@
p4_identity_done:
.align 16
.align 16
-.globl _mesa_
x86_64
_transform_points4_3d_no_rot
-_mesa_
x86_64
_transform_points4_3d_no_rot:
+.globl _mesa_
3dnow
_transform_points4_3d_no_rot
+_mesa_
3dnow
_transform_points4_3d_no_rot:
movl V4F_COUNT(%rdx), %ecx /* count */
movzx V4F_STRIDE(%rdx), %eax /* stride */
movl V4F_COUNT(%rdx), %ecx /* count */
movzx V4F_STRIDE(%rdx), %eax /* stride */
@@
-268,8
+283,8
@@
p4_3d_no_rot_done:
.align 16
.align 16
-.globl _mesa_
x86_64
_transform_points4_perspective
-_mesa_
x86_64
_transform_points4_perspective:
+.globl _mesa_
3dnow
_transform_points4_perspective
+_mesa_
3dnow
_transform_points4_perspective:
movl V4F_COUNT(%rdx), %ecx /* count */
movzx V4F_STRIDE(%rdx), %eax /* stride */
movl V4F_COUNT(%rdx), %ecx /* count */
movzx V4F_STRIDE(%rdx), %eax /* stride */
@@
-334,8
+349,8
@@
p4_perspective_done:
ret
.align 16
ret
.align 16
-.globl _mesa_
x86_64
_transform_points4_2d_no_rot
-_mesa_
x86_64
_transform_points4_2d_no_rot:
+.globl _mesa_
3dnow
_transform_points4_2d_no_rot
+_mesa_
3dnow
_transform_points4_2d_no_rot:
movl V4F_COUNT(%rdx), %ecx /* count */
movzx V4F_STRIDE(%rdx), %eax /* stride */
movl V4F_COUNT(%rdx), %ecx /* count */
movzx V4F_STRIDE(%rdx), %eax /* stride */
@@
-389,8
+404,8
@@
p4_2d_no_rot_done:
.align 16
.align 16
-.globl _mesa_
x86_64
_transform_points4_2d
-_mesa_
x86_64
_transform_points4_2d:
+.globl _mesa_
3dnow
_transform_points4_2d
+_mesa_
3dnow
_transform_points4_2d:
movl V4F_COUNT(%rdx), %ecx /* count */
movzx V4F_STRIDE(%rdx), %eax /* stride */
movl V4F_COUNT(%rdx), %ecx /* count */
movzx V4F_STRIDE(%rdx), %eax /* stride */