Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
From: Jay Estabrook <Jay.Estabrook@compaq.com>
To: axp-list@redhat.com
Subject: Re: AGP 2X Test
Date: Tue, 2 Jan 2001 10:57:19 -0500	[thread overview]
Message-ID: <20010102105719.D1281@linux04.mro.cpqcorp.net> (raw)
In-Reply-To: <60FD2E552331D41198B10000F8061C2D014F2FFC@KH_ZEUS>; from HMSEO@sec.samsung.com on Tue, Jan 02, 2001 at 03:32:39PM +0900

[-- Attachment #1: Type: text/plain, Size: 778 bytes --]

On Tue, Jan 02, 2001 at 03:32:39PM +0900, Hyung Min SEO wrote:
> 
> I'd like to test the agp 2x under alpha linux. 
> I think, the QuakeIII is good for it, but it is not converted to alpha
> linux. 
>
> Can anybody suggests any application for agp 2x test? 

Two games come to mind:

1. tuxracer (using attached patches)

2. glheretic

Others may be able to give you some more serious apps... ;-}

Good luck.

--Jay++

-----------------------------------------------------------------------------
Jay A Estabrook                            Alpha Engineering - LINUX Project
Compaq Computer Corp. - MRO1-2/K20         (508) 467-2080
200 Forest Street, Marlboro MA 01752       Jay.Estabrook@compaq.com
-----------------------------------------------------------------------------

[-- Attachment #2: tuxracer.diffs --]
[-- Type: text/plain, Size: 1801 bytes --]

--- configure.in.orig	Mon Nov 20 21:36:12 2000
+++ configure.in	Mon Nov 20 21:38:53 2000
@@ -50,6 +50,7 @@
 case "$host" in
 i*86-*-*) TR_CFLAGS="$TR_CFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2";
           TR_CXXFLAGS="$TR_CXXFLAGS -malign-loops=2 -malign-jumps=2 -malign-functions=2";;
+alpha*-*-linux-*) TR_CFLAGS="$TR_CFLAGS -mieee";;
 esac
 
 AC_ARG_ENABLE(debug,     [  --enable-debug          Produce an executable with debugging symbols], [TR_CFLAGS="-g -Wall"; TR_CXXFLAGS="-g -Wall"])
--- src/image.c.orig	Mon Nov 20 19:54:02 2000
+++ src/image.c	Mon Nov 20 19:55:59 2000
@@ -46,15 +46,15 @@
        FILE *file;
        unsigned char *tmp[5];
        unsigned long rleEnd;
-       unsigned long *rowStart;
-       unsigned long *rowSize;
+       unsigned int *rowStart;
+       unsigned int *rowSize;
      } Image;
 
 
 static Image *ImageOpen(char *fileName)
 {
   Image *image;
-  unsigned long *rowStart, *rowSize, ulTmp;
+  unsigned int *rowStart, *rowSize, ulTmp;
   int x, i;
 
   image = (Image *)malloc(sizeof(Image));
@@ -96,9 +96,9 @@
 
   if ((image->type & 0xFF00) == 0x0100) /* RLE image */
     {
-      x = image->sizeY * image->sizeZ * sizeof(long);
-      image->rowStart = (unsigned long *)malloc(x);
-      image->rowSize = (unsigned long *)malloc(x);
+      x = image->sizeY * image->sizeZ * sizeof(int);
+      image->rowStart = (unsigned int *)malloc(x);
+      image->rowSize = (unsigned int *)malloc(x);
       if (image->rowStart == NULL || image->rowSize == NULL) 
 	{
 	  fprintf(stderr, "Out of memory!\n");
@@ -110,7 +110,7 @@
       fread(image->rowSize, 1, x, image->file);
       if (image->imagic == IMAGIC_SWAP) 
 	{
-	  x /= sizeof(long);
+	  x /= sizeof(int);
 	  rowStart = image->rowStart;
 	  rowSize = image->rowSize;
 	  while (x--) 

      reply	other threads:[~2001-01-02 15:52 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-02  6:32 AGP 2X Test Hyung Min SEO
2001-01-02 15:57 ` Jay Estabrook [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox