glsl: lower mediump temporaries to 16 bits except structures (v2)
[mesa.git] / src / mesa / x86-64 / xform4.S
index b0aca19c8b0963d00e22c4e42d608e97fc2e4c4e..e36a6276d2ae902f45ab451eb8262f27e9eb00b4 100644 (file)
  * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  * OTHER DEALINGS IN THE SOFTWARE.
  */
+#ifdef HAVE_CET_H
+#include <cet.h>
+#else
+#define _CET_ENDBR
+#endif
 
 #ifdef USE_X86_64_ASM
 
-#include "matypes.h"
+#define MATH_ASM_PTR_SIZE 8
+#include "math/m_vector_asm.h"
 
 .text
 
@@ -32,6 +38,7 @@
 .globl _mesa_x86_64_cpuid
 .hidden _mesa_x86_64_cpuid
 _mesa_x86_64_cpuid:
+       _CET_ENDBR
        pushq   %rbx
        movl    (%rdi), %eax
        movl    8(%rdi), %ecx
@@ -54,6 +61,7 @@ _mesa_x86_64_transform_points4_general:
  *     rsi = matrix
  *     rdx = source
  */
+       _CET_ENDBR
        movl V4F_COUNT(%rdx), %ecx      /* count */
        movzbl V4F_STRIDE(%rdx), %eax   /* stride */
 
@@ -129,7 +137,7 @@ p4_constants:
  * because it ensures that the last matrix row (or is it column?) is 0,0,0,1
  */
 _mesa_x86_64_transform_points4_3d:
-
+       _CET_ENDBR
        leaq p4_constants(%rip), %rax
 
        prefetchnta 64(%rsi)
@@ -197,7 +205,7 @@ p4_3d_done:
 .globl _mesa_x86_64_transform_points4_identity
 .hidden _mesa_x86_64_transform_points4_identity
 _mesa_x86_64_transform_points4_identity:
-
+       _CET_ENDBR
        movl V4F_COUNT(%rdx), %ecx      /* count */
        movzbl V4F_STRIDE(%rdx), %eax   /* stride */
 
@@ -226,7 +234,7 @@ p4_identity_done:
 .globl _mesa_3dnow_transform_points4_3d_no_rot
 .hidden _mesa_3dnow_transform_points4_3d_no_rot
 _mesa_3dnow_transform_points4_3d_no_rot:
-
+       _CET_ENDBR
        movl V4F_COUNT(%rdx), %ecx      /* count */
        movzbl V4F_STRIDE(%rdx), %eax   /* stride */
 
@@ -291,7 +299,7 @@ p4_3d_no_rot_done:
 .globl _mesa_3dnow_transform_points4_perspective
 .hidden _mesa_3dnow_transform_points4_perspective
 _mesa_3dnow_transform_points4_perspective:
-
+       _CET_ENDBR
        movl V4F_COUNT(%rdx), %ecx      /* count */
        movzbl V4F_STRIDE(%rdx), %eax   /* stride */
 
@@ -358,7 +366,7 @@ p4_perspective_done:
 .globl _mesa_3dnow_transform_points4_2d_no_rot
 .hidden _mesa_3dnow_transform_points4_2d_no_rot
 _mesa_3dnow_transform_points4_2d_no_rot:
-
+       _CET_ENDBR
        movl V4F_COUNT(%rdx), %ecx      /* count */
        movzbl V4F_STRIDE(%rdx), %eax   /* stride */
 
@@ -414,7 +422,7 @@ p4_2d_no_rot_done:
 .globl _mesa_3dnow_transform_points4_2d
 .hidden _mesa_3dnow_transform_points4_2d
 _mesa_3dnow_transform_points4_2d:
-
+       _CET_ENDBR
        movl V4F_COUNT(%rdx), %ecx      /* count */
        movzbl V4F_STRIDE(%rdx), %eax   /* stride */