* Re: AGP 2X Test
2001-01-02 6:32 AGP 2X Test Hyung Min SEO
@ 2001-01-02 15:57 ` Jay Estabrook
0 siblings, 0 replies; 2+ messages in thread
From: Jay Estabrook @ 2001-01-02 15:57 UTC (permalink / raw)
To: axp-list
[-- 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--)
^ permalink raw reply [flat|nested] 2+ messages in thread