X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fmesa%2Fsparc%2Fxform.S;h=2a7cce41e5ad78b19e44df54432295121d9c1836;hb=ebe304fa540f98d047382297f448fec692a67b8b;hp=368fdd98c1057739f9c316a36ccdce8744a68646;hpb=7943b349d696f8030f0d2f836ad42a762f4c6026;p=mesa.git diff --git a/src/mesa/sparc/xform.S b/src/mesa/sparc/xform.S index 368fdd98c10..2a7cce41e5a 100644 --- a/src/mesa/sparc/xform.S +++ b/src/mesa/sparc/xform.S @@ -1,4 +1,3 @@ -/* $Id: xform.S,v 1.1 2001/05/23 14:27:03 brianp Exp $ */ /* TODO * @@ -16,28 +15,13 @@ * tricky and not much of a gain though. */ -#ifdef __sparc_v9__ -#define LDPTR ldx -#define V4F_DATA 0x00 -#define V4F_START 0x08 -#define V4F_COUNT 0x10 -#define V4F_STRIDE 0x14 -#define V4F_SIZE 0x18 -#define V4F_FLAGS 0x1c -#else -#define LDPTR ld -#define V4F_DATA 0x00 -#define V4F_START 0x04 -#define V4F_COUNT 0x08 -#define V4F_STRIDE 0x0c -#define V4F_SIZE 0x10 -#define V4F_FLAGS 0x14 -#endif +#include "sparc_matrix.h" -#define VEC_SIZE_1 1 -#define VEC_SIZE_2 3 -#define VEC_SIZE_3 7 -#define VEC_SIZE_4 15 +#if defined(SVR4) || defined(__SVR4) || defined(__svr4__) || defined(__arch64__) + /* Solaris requires this for 64-bit. */ + .register %g2, #scratch + .register %g3, #scratch +#endif .text .align 64 @@ -71,8 +55,6 @@ __set_v4f_4: retl st %g2, [%o0 + V4F_FLAGS] -#include "sparc_matrix.h" - /* First the raw versions. */ .globl _mesa_sparc_transform_points1_general