Compare commits
4 Commits
retrodebia
...
master
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a07014523a | ||
|
|
c9a4d92bdb | ||
|
|
4df65b726c | ||
|
|
f40ae0ac13 |
@@ -21,6 +21,18 @@
|
|||||||
|
|
||||||
ChangeLog
|
ChangeLog
|
||||||
|
|
||||||
|
2002/05/05 Guillem Jover <guillem@hadrons.org>
|
||||||
|
|
||||||
|
* Re-included VOODOO pci id, accidentally removed in last patch,
|
||||||
|
thanks to Jan Kuipers to point this out.
|
||||||
|
|
||||||
|
2002/01/29 Guillem Jover <guillem@hadrons.org>
|
||||||
|
|
||||||
|
* Fixed bug when compiling for 2.4 kernels with modversions.
|
||||||
|
* Added devfs support.
|
||||||
|
* Added MODULE_* declarations.
|
||||||
|
* Cleaned detection code.
|
||||||
|
|
||||||
2000/02/04 Joseph Kain <joseph@3dfx.com>
|
2000/02/04 Joseph Kain <joseph@3dfx.com>
|
||||||
|
|
||||||
* Updated Carlo Woord's email address.
|
* Updated Carlo Woord's email address.
|
||||||
@@ -100,13 +112,13 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef MODULE
|
#ifdef MODULE
|
||||||
#include <linux/module.h>
|
|
||||||
#if defined(CONFIG_MODVERSIONS) && !defined(MODVERSIONS)
|
#if defined(CONFIG_MODVERSIONS) && !defined(MODVERSIONS)
|
||||||
#define MODVERSIONS
|
#define MODVERSIONS
|
||||||
#endif
|
#endif
|
||||||
#ifdef MODVERSIONS
|
#ifdef MODVERSIONS
|
||||||
#include <linux/modversions.h>
|
#include <linux/modversions.h>
|
||||||
#endif
|
#endif
|
||||||
|
#include <linux/module.h>
|
||||||
#else
|
#else
|
||||||
#define MOD_INC_USE_COUNT
|
#define MOD_INC_USE_COUNT
|
||||||
#define MOD_DEC_USE_COUNT
|
#define MOD_DEC_USE_COUNT
|
||||||
@@ -117,6 +129,9 @@
|
|||||||
#include <linux/mm.h>
|
#include <linux/mm.h>
|
||||||
#include <linux/errno.h>
|
#include <linux/errno.h>
|
||||||
#include <linux/pci.h>
|
#include <linux/pci.h>
|
||||||
|
#if KERNEL_MIN_VER(2,3,46) || defined(DEVFS_SUPPORT)
|
||||||
|
#include <linux/devfs_fs_kernel.h>
|
||||||
|
#endif
|
||||||
#include <asm/segment.h>
|
#include <asm/segment.h>
|
||||||
#include <asm/ioctl.h>
|
#include <asm/ioctl.h>
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
@@ -172,6 +187,17 @@
|
|||||||
#define PCI_DEVICE_ID_3DFX_VOODOO3 5
|
#define PCI_DEVICE_ID_3DFX_VOODOO3 5
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
static struct pci_card {
|
||||||
|
unsigned short vendor;
|
||||||
|
unsigned short device;
|
||||||
|
} pci_card_list[] = {
|
||||||
|
{PCI_VENDOR_ID_3DFX, PCI_DEVICE_ID_3DFX_VOODOO},
|
||||||
|
{PCI_VENDOR_ID_3DFX, PCI_DEVICE_ID_3DFX_VOODOO2},
|
||||||
|
{PCI_VENDOR_ID_ALLIANCE, PCI_DEVICE_ID_ALLIANCE_AT3D},
|
||||||
|
{PCI_VENDOR_ID_3DFX, PCI_DEVICE_ID_3DFX_BANSHEE},
|
||||||
|
{PCI_VENDOR_ID_3DFX, PCI_DEVICE_ID_3DFX_VOODOO3}
|
||||||
|
};
|
||||||
|
|
||||||
#ifdef DEBUG
|
#ifdef DEBUG
|
||||||
#define DEBUGMSG(x) printk x
|
#define DEBUGMSG(x) printk x
|
||||||
#else
|
#else
|
||||||
@@ -218,6 +244,9 @@ void cleanup_module(void);
|
|||||||
|
|
||||||
static cardInfo cards[MAXCARDS];
|
static cardInfo cards[MAXCARDS];
|
||||||
static int numCards = 0;
|
static int numCards = 0;
|
||||||
|
#if KERNEL_MIN_VER(2,3,46) || defined(DEVFS_SUPPORT)
|
||||||
|
static devfs_handle_t devfs_handle;
|
||||||
|
#endif
|
||||||
|
|
||||||
static void findCardType(int vendor, int device)
|
static void findCardType(int vendor, int device)
|
||||||
{
|
{
|
||||||
@@ -243,14 +272,12 @@ static void findCardType(int vendor, int device)
|
|||||||
|
|
||||||
static int findCards(void)
|
static int findCards(void)
|
||||||
{
|
{
|
||||||
|
int i;
|
||||||
if (!pci_present())
|
if (!pci_present())
|
||||||
return 0;
|
return 0;
|
||||||
numCards = 0;
|
numCards = 0;
|
||||||
findCardType(PCI_VENDOR_ID_3DFX, PCI_DEVICE_ID_3DFX_VOODOO);
|
for (i = 0; i < (sizeof(pci_card_list)/sizeof(struct pci_card)); i++)
|
||||||
findCardType(PCI_VENDOR_ID_3DFX, PCI_DEVICE_ID_3DFX_VOODOO2);
|
findCardType(pci_card_list[i].vendor, pci_card_list[i].device);
|
||||||
findCardType(PCI_VENDOR_ID_ALLIANCE, 0x643d);
|
|
||||||
findCardType(PCI_VENDOR_ID_3DFX, PCI_DEVICE_ID_3DFX_BANSHEE);
|
|
||||||
findCardType(PCI_VENDOR_ID_3DFX, PCI_DEVICE_ID_3DFX_VOODOO3);
|
|
||||||
return numCards;
|
return numCards;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -669,10 +696,22 @@ int init_module(void)
|
|||||||
int ret;
|
int ret;
|
||||||
DEBUGMSG(("3dfx: Entering init_module()\n"));
|
DEBUGMSG(("3dfx: Entering init_module()\n"));
|
||||||
|
|
||||||
|
#if KERNEL_MIN_VER(2,3,46) || defined(DEVFS_SUPPORT)
|
||||||
|
if ((ret = devfs_register_chrdev(MAJOR_3DFX, "3dfx", &fops_3dfx)) < 0) {
|
||||||
|
printk("3dfx: Unable to register character device with major %d\n", MAJOR_3DFX);
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
devfs_handle = devfs_register(NULL, "3dfx", DEVFS_FL_NONE,
|
||||||
|
MAJOR_3DFX, DEVICE_VOODOO,
|
||||||
|
S_IFCHR | S_IROTH | S_IWOTH | S_IRGRP | S_IWGRP,
|
||||||
|
&fops_3dfx, NULL);
|
||||||
|
#else
|
||||||
if ((ret = register_chrdev(MAJOR_3DFX, "3dfx", &fops_3dfx)) < 0) {
|
if ((ret = register_chrdev(MAJOR_3DFX, "3dfx", &fops_3dfx)) < 0) {
|
||||||
printk("3dfx: Unable to register character device with major %d\n", MAJOR_3DFX);
|
printk("3dfx: Unable to register character device with major %d\n", MAJOR_3DFX);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
DEBUGMSG(("3dfx: Successfully registered device 3dfx\n"));
|
DEBUGMSG(("3dfx: Successfully registered device 3dfx\n"));
|
||||||
findCards();
|
findCards();
|
||||||
|
|
||||||
@@ -698,11 +737,21 @@ void cleanup_module(void)
|
|||||||
#ifdef HAVE_MTRR
|
#ifdef HAVE_MTRR
|
||||||
resetmtrr_3dfx();
|
resetmtrr_3dfx();
|
||||||
#endif
|
#endif
|
||||||
|
#if KERNEL_MIN_VER(2,3,46) || defined(DEVFS_SUPPORT)
|
||||||
|
devfs_unregister(devfs_handle);
|
||||||
|
|
||||||
|
if (devfs_unregister_chrdev(MAJOR_3DFX, "3dfx"))
|
||||||
|
{
|
||||||
|
DEBUGMSG(("3dfx: devfs_unregister_chrdev failed\n"));
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#else
|
||||||
if (unregister_chrdev(MAJOR_3DFX, "3dfx"))
|
if (unregister_chrdev(MAJOR_3DFX, "3dfx"))
|
||||||
{
|
{
|
||||||
DEBUGMSG(("3dfx: unregister_chrdev failed\n"));
|
DEBUGMSG(("3dfx: unregister_chrdev failed\n"));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
#else /* !MODULE */
|
#else /* !MODULE */
|
||||||
|
|
||||||
@@ -719,6 +768,11 @@ long init_3dfx(long mem_start, long mem_end)
|
|||||||
}
|
}
|
||||||
#endif /* !MODULE */
|
#endif /* !MODULE */
|
||||||
|
|
||||||
|
#if KERNEL_MIN_VER(2,1,21)
|
||||||
|
MODULE_AUTHOR("Daryll Strauss et al.");
|
||||||
|
MODULE_DESCRIPTION("3dfx glide kernel device driver");
|
||||||
|
MODULE_LICENSE("GPL");
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(DEBUG)
|
#if defined(DEBUG)
|
||||||
/*
|
/*
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ install:
|
|||||||
echo "" >> /lib/modules/$(shell ./kinfo --UTS)/modules.dep; \
|
echo "" >> /lib/modules/$(shell ./kinfo --UTS)/modules.dep; \
|
||||||
fi; \
|
fi; \
|
||||||
fi; \
|
fi; \
|
||||||
if [ ! -c /dev/3dfx ]; then \
|
if [ ! -e /dev/.devfsd -a ! -c /dev/3dfx ]; then \
|
||||||
mknod /dev/3dfx c 107 0; \
|
mknod /dev/3dfx c 107 0; \
|
||||||
chmod go+w /dev/3dfx; \
|
chmod go+w /dev/3dfx; \
|
||||||
fi; \
|
fi; \
|
||||||
|
|||||||
@@ -89,5 +89,5 @@ FX_EXPORT FxU32 FX_CSTYLE fxoemInitSetVideo(OemInitInfo *oem);
|
|||||||
FX_EXPORT FxU32 FX_CSTYLE fxoemRestoreVideo(OemInitInfo *oem);
|
FX_EXPORT FxU32 FX_CSTYLE fxoemRestoreVideo(OemInitInfo *oem);
|
||||||
FX_EXPORT FxU32 FX_CSTYLE fxoemControl(FxU32 mode);
|
FX_EXPORT FxU32 FX_CSTYLE fxoemControl(FxU32 mode);
|
||||||
|
|
||||||
#endif __OEMINIT_H__
|
#endif /* __OEMINIT_H__ */
|
||||||
|
|
||||||
|
|||||||
@@ -20,6 +20,7 @@
|
|||||||
|
|
||||||
#include <sys/utsname.h>
|
#include <sys/utsname.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
|
|
||||||
int _cpu_detect_asm() {
|
int _cpu_detect_asm() {
|
||||||
struct utsname name;
|
struct utsname name;
|
||||||
|
|||||||
@@ -19,6 +19,9 @@
|
|||||||
**
|
**
|
||||||
** $Header$
|
** $Header$
|
||||||
** $Log$
|
** $Log$
|
||||||
|
** Revision 1.1.1.1 1999/12/07 21:49:09 joseph
|
||||||
|
** Initial checkin into SourceForge.
|
||||||
|
**
|
||||||
**
|
**
|
||||||
** 206 6/06/98 12:06p Peter
|
** 206 6/06/98 12:06p Peter
|
||||||
** gmt's trilinear hell bug
|
** gmt's trilinear hell bug
|
||||||
@@ -2222,7 +2225,7 @@ do { \
|
|||||||
#define REG_GROUP_SETF_CLAMP(__regBase, __regAddr, __val) \
|
#define REG_GROUP_SETF_CLAMP(__regBase, __regAddr, __val) \
|
||||||
do { \
|
do { \
|
||||||
const FxU32 fpClampVal = FP_FLOAT_CLAMP(__val); \
|
const FxU32 fpClampVal = FP_FLOAT_CLAMP(__val); \
|
||||||
REG_GROUP_ASSERT(__regAddr, fpClampVal, FXTRUE); \
|
REG_GROUP_ASSERT(__regAddr, fpClampVal, FXTRUE); \
|
||||||
SET(((FxU32*)(__regBase))[offsetof(SstRegs, __regAddr) >> 2], fpClampVal); \
|
SET(((FxU32*)(__regBase))[offsetof(SstRegs, __regAddr) >> 2], fpClampVal); \
|
||||||
GR_INC_SIZE(sizeof(FxU32)); \
|
GR_INC_SIZE(sizeof(FxU32)); \
|
||||||
} while(0)
|
} while(0)
|
||||||
|
|||||||
@@ -19,6 +19,12 @@
|
|||||||
**
|
**
|
||||||
** $Header$
|
** $Header$
|
||||||
** $Log$
|
** $Log$
|
||||||
|
** Revision 1.2 2003/06/28 19:10:36 guillemj
|
||||||
|
** Fixed preprocessor invalid tokens in newer gcc 3.x versions.
|
||||||
|
**
|
||||||
|
** Revision 1.1.1.1 1999/12/07 21:49:26 joseph
|
||||||
|
** Initial checkin into SourceForge.
|
||||||
|
**
|
||||||
**
|
**
|
||||||
** 3 3/17/99 6:16p Dow
|
** 3 3/17/99 6:16p Dow
|
||||||
** Phantom Menace and other fixes.
|
** Phantom Menace and other fixes.
|
||||||
@@ -2001,7 +2007,7 @@ _grFifoFWriteDebug((FxU32) a, (float) b, (FxU32) c)
|
|||||||
__stwbrx( *((FxU32*)&temp), (void*)&(d), 0 ); \
|
__stwbrx( *((FxU32*)&temp), (void*)&(d), 0 ); \
|
||||||
}
|
}
|
||||||
# define SET_LINEAR(d, s) SET((d), (s))
|
# define SET_LINEAR(d, s) SET((d), (s))
|
||||||
# define SET_LINEAR_16(d, s) SET((d), ((((FxU32)(s)) >> 16UL) | \
|
# define SET_LINEAR_16(d, s) SET((d), ((((FxU32)(s)) >> 16UL) | \
|
||||||
(((FxU32)(s)) << 16UL)))
|
(((FxU32)(s)) << 16UL)))
|
||||||
# define SET_LINEAR_8(d, s) ((d) = (s))
|
# define SET_LINEAR_8(d, s) ((d) = (s))
|
||||||
# else /* !defined(__MWERKS__) && POWERPC */
|
# else /* !defined(__MWERKS__) && POWERPC */
|
||||||
@@ -3005,7 +3011,7 @@ do { \
|
|||||||
#define REG_GROUP_SETF_CLAMP(__regBase, __regAddr, __val) \
|
#define REG_GROUP_SETF_CLAMP(__regBase, __regAddr, __val) \
|
||||||
do { \
|
do { \
|
||||||
const FxU32 fpClampVal = FP_FLOAT_CLAMP(__val); \
|
const FxU32 fpClampVal = FP_FLOAT_CLAMP(__val); \
|
||||||
REG_GROUP_ASSERT(__regAddr, fpClampVal, FXTRUE); \
|
REG_GROUP_ASSERT(__regAddr, fpClampVal, FXTRUE); \
|
||||||
SET(((FxU32*)(__regBase))[offsetof(SstRegs, __regAddr) >> 2], fpClampVal); \
|
SET(((FxU32*)(__regBase))[offsetof(SstRegs, __regAddr) >> 2], fpClampVal); \
|
||||||
GR_INC_SIZE(sizeof(FxU32)); \
|
GR_INC_SIZE(sizeof(FxU32)); \
|
||||||
} while(0)
|
} while(0)
|
||||||
@@ -3353,16 +3359,16 @@ double_precision_asm(void);
|
|||||||
//#define GLIDE3_DEBUG 1
|
//#define GLIDE3_DEBUG 1
|
||||||
#endif
|
#endif
|
||||||
#ifdef GLIDE3_DEBUG
|
#ifdef GLIDE3_DEBUG
|
||||||
#define TEX_INFO(ptr,field) ptr##field
|
#define TEX_INFO(ptr,field) ptr.field
|
||||||
#define G3_LOD_TRANSLATE(lod) (lod)
|
#define G3_LOD_TRANSLATE(lod) (lod)
|
||||||
#define G3_ASPECT_TRANSLATE(aspect) (aspect)
|
#define G3_ASPECT_TRANSLATE(aspect) (aspect)
|
||||||
#else
|
#else
|
||||||
#define TEX_INFO(ptr,field) ptr##field##Log2
|
#define TEX_INFO(ptr,field) ptr.field ## Log2
|
||||||
#define G3_LOD_TRANSLATE(lod) (0x8-lod)
|
#define G3_LOD_TRANSLATE(lod) (0x8-lod)
|
||||||
#define G3_ASPECT_TRANSLATE(aspect) (0x3-(aspect))
|
#define G3_ASPECT_TRANSLATE(aspect) (0x3-(aspect))
|
||||||
#endif /* GLIDE3_DEBUG */
|
#endif /* GLIDE3_DEBUG */
|
||||||
#else
|
#else
|
||||||
#define TEX_INFO(ptr,field) ptr##field
|
#define TEX_INFO(ptr,field) ptr.field
|
||||||
#define G3_LOD_TRANSLATE(lod) (lod)
|
#define G3_LOD_TRANSLATE(lod) (lod)
|
||||||
#define G3_ASPECT_TRANSLATE(aspect) (aspect)
|
#define G3_ASPECT_TRANSLATE(aspect) (aspect)
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@@ -19,6 +19,9 @@
|
|||||||
**
|
**
|
||||||
** $Header$
|
** $Header$
|
||||||
** $Log$
|
** $Log$
|
||||||
|
** Revision 1.1.1.1 1999/12/07 21:49:28 joseph
|
||||||
|
** Initial checkin into SourceForge.
|
||||||
|
**
|
||||||
**
|
**
|
||||||
** 3 3/17/99 6:16p Dow
|
** 3 3/17/99 6:16p Dow
|
||||||
** Phantom Menace and other fixes.
|
** Phantom Menace and other fixes.
|
||||||
@@ -239,9 +242,9 @@ static void
|
|||||||
downloadTexture(Texture *texture, Gu3dfInfo *info)
|
downloadTexture(Texture *texture, Gu3dfInfo *info)
|
||||||
{
|
{
|
||||||
texture->info.data = info->data;
|
texture->info.data = info->data;
|
||||||
TEX_INFO(texture->info.,smallLod) = info->header.small_lod;
|
TEX_INFO(texture->info,smallLod) = info->header.small_lod;
|
||||||
TEX_INFO(texture->info.,largeLod) = info->header.large_lod;
|
TEX_INFO(texture->info,largeLod) = info->header.large_lod;
|
||||||
TEX_INFO(texture->info.,aspectRatio) = info->header.aspect_ratio;
|
TEX_INFO(texture->info,aspectRatio) = info->header.aspect_ratio;
|
||||||
texture->info.format = info->header.format;
|
texture->info.format = info->header.format;
|
||||||
|
|
||||||
texture->addr = nextFreeBase;
|
texture->addr = nextFreeBase;
|
||||||
|
|||||||
@@ -20,7 +20,10 @@
|
|||||||
|
|
||||||
/* $Header$ */
|
/* $Header$ */
|
||||||
/* $Revision$ */
|
/* $Revision$ */
|
||||||
/* $Log$ */
|
/* $Log$
|
||||||
|
/* Revision 1.1.1.1 1999/12/07 21:49:30 joseph
|
||||||
|
/* Initial checkin into SourceForge.
|
||||||
|
/* */
|
||||||
/* */
|
/* */
|
||||||
/* 11 10/05/98 7:43p Peter */
|
/* 11 10/05/98 7:43p Peter */
|
||||||
/* 3DNow!(tm) happiness everywhere */
|
/* 3DNow!(tm) happiness everywhere */
|
||||||
@@ -122,10 +125,12 @@ PROC_TYPE(cull):
|
|||||||
#define GLIDE_GENERIC_SETUP 0
|
#define GLIDE_GENERIC_SETUP 0
|
||||||
#include "xdraw2.inc.S"
|
#include "xdraw2.inc.S"
|
||||||
#undef cull
|
#undef cull
|
||||||
#define GLIDE_GENERIC_SETUP 0
|
#undef GLIDE_GENERIC_SETUP
|
||||||
#define GLIDE_PACK_ALPHA 0
|
#undef GLIDE_PACK_ALPHA
|
||||||
#define GLIDE_PACK_RGB 0
|
#undef GLIDE_PACK_RGB
|
||||||
#define GLIDE_CULLING 0
|
#undef GLIDE_CULLING
|
||||||
|
|
||||||
|
#undef LOCAL
|
||||||
|
|
||||||
END_PROC_TYPE(cull):
|
END_PROC_TYPE(cull):
|
||||||
.size PROC_TYPE(cull),END_PROC_TYPE(cull)-PROC_TYPE(cull)
|
.size PROC_TYPE(cull),END_PROC_TYPE(cull)-PROC_TYPE(cull)
|
||||||
@@ -144,10 +149,12 @@ PROC_TYPE(cull_rgb):
|
|||||||
#define GLIDE_PACK_ALPHA 0
|
#define GLIDE_PACK_ALPHA 0
|
||||||
#define GLIDE_GENERIC_SETUP 0
|
#define GLIDE_GENERIC_SETUP 0
|
||||||
#include "xdraw2.inc.S"
|
#include "xdraw2.inc.S"
|
||||||
#define GLIDE_GENERIC_SETUP 0
|
#undef GLIDE_GENERIC_SETUP
|
||||||
#define GLIDE_PACK_ALPHA 0
|
#undef GLIDE_PACK_ALPHA
|
||||||
#define GLIDE_PACK_RGB 0
|
#undef GLIDE_PACK_RGB
|
||||||
#define GLIDE_CULLING 0
|
#undef GLIDE_CULLING
|
||||||
|
|
||||||
|
#undef LOCAL
|
||||||
|
|
||||||
END_PROC_TYPE(cull_rgb):
|
END_PROC_TYPE(cull_rgb):
|
||||||
.size PROC_TYPE(cull_rgb),END_PROC_TYPE(cull_rgb)-PROC_TYPE(cull_rgb)
|
.size PROC_TYPE(cull_rgb),END_PROC_TYPE(cull_rgb)-PROC_TYPE(cull_rgb)
|
||||||
@@ -165,10 +172,10 @@ PROC_TYPE(cull_argb):
|
|||||||
#define GLIDE_PACK_ALPHA 1
|
#define GLIDE_PACK_ALPHA 1
|
||||||
#define GLIDE_GENERIC_SETUP 0
|
#define GLIDE_GENERIC_SETUP 0
|
||||||
#include "xdraw2.inc.S"
|
#include "xdraw2.inc.S"
|
||||||
#define GLIDE_GENERIC_SETUP 0
|
#undef GLIDE_GENERIC_SETUP
|
||||||
#define GLIDE_PACK_ALPHA 0
|
#undef GLIDE_PACK_ALPHA
|
||||||
#define GLIDE_PACK_RGB 0
|
#undef GLIDE_PACK_RGB
|
||||||
#define GLIDE_CULLING 0
|
#undef GLIDE_CULLING
|
||||||
|
|
||||||
END_PROC_TYPE(cull_argb):
|
END_PROC_TYPE(cull_argb):
|
||||||
.size PROC_TYPE(cull_argb),END_PROC_TYPE(cull_argb)-PROC_TYPE(cull_argb)
|
.size PROC_TYPE(cull_argb),END_PROC_TYPE(cull_argb)-PROC_TYPE(cull_argb)
|
||||||
@@ -187,10 +194,12 @@ PROC_TYPE(Default):
|
|||||||
#define GLIDE_PACK_ALPHA 0
|
#define GLIDE_PACK_ALPHA 0
|
||||||
#define GLIDE_GENERIC_SETUP 0
|
#define GLIDE_GENERIC_SETUP 0
|
||||||
#include "xdraw2.inc.S"
|
#include "xdraw2.inc.S"
|
||||||
#define GLIDE_GENERIC_SETUP 0
|
#undef GLIDE_GENERIC_SETUP
|
||||||
#define GLIDE_PACK_ALPHA 0
|
#undef GLIDE_PACK_ALPHA
|
||||||
#define GLIDE_PACK_RGB 0
|
#undef GLIDE_PACK_RGB
|
||||||
#define GLIDE_CULLING 0
|
#undef GLIDE_CULLING
|
||||||
|
|
||||||
|
#undef LOCAL
|
||||||
|
|
||||||
END_PROC_TYPE(Default):
|
END_PROC_TYPE(Default):
|
||||||
.size PROC_TYPE(Default),END_PROC_TYPE(Default)-PROC_TYPE(Default)
|
.size PROC_TYPE(Default),END_PROC_TYPE(Default)-PROC_TYPE(Default)
|
||||||
@@ -209,10 +218,12 @@ PROC_TYPE(rgb):
|
|||||||
#define GLIDE_PACK_ALPHA 0
|
#define GLIDE_PACK_ALPHA 0
|
||||||
#define GLIDE_GENERIC_SETUP 0
|
#define GLIDE_GENERIC_SETUP 0
|
||||||
#include "xdraw2.inc.S"
|
#include "xdraw2.inc.S"
|
||||||
#define GLIDE_GENERIC_SETUP 0
|
#undef GLIDE_GENERIC_SETUP
|
||||||
#define GLIDE_PACK_ALPHA 0
|
#undef GLIDE_PACK_ALPHA
|
||||||
#define GLIDE_PACK_RGB 0
|
#undef GLIDE_PACK_RGB
|
||||||
#define GLIDE_CULLING 0
|
#undef GLIDE_CULLING
|
||||||
|
|
||||||
|
#undef LOCAL
|
||||||
|
|
||||||
END_PROC_TYPE(rgb):
|
END_PROC_TYPE(rgb):
|
||||||
.size PROC_TYPE(rgb),END_PROC_TYPE(rgb)-PROC_TYPE(rgb)
|
.size PROC_TYPE(rgb),END_PROC_TYPE(rgb)-PROC_TYPE(rgb)
|
||||||
@@ -230,10 +241,12 @@ PROC_TYPE(argb):
|
|||||||
#define GLIDE_PACK_ALPHA 1
|
#define GLIDE_PACK_ALPHA 1
|
||||||
#define GLIDE_GENERIC_SETUP 0
|
#define GLIDE_GENERIC_SETUP 0
|
||||||
#include "xdraw2.inc.S"
|
#include "xdraw2.inc.S"
|
||||||
#define GLIDE_GENERIC_SETUP 0
|
#undef GLIDE_GENERIC_SETUP
|
||||||
#define GLIDE_PACK_ALPHA 0
|
#undef GLIDE_PACK_ALPHA
|
||||||
#define GLIDE_PACK_RGB 0
|
#undef GLIDE_PACK_RGB
|
||||||
#define GLIDE_CULLING 0
|
#undef GLIDE_CULLING
|
||||||
|
|
||||||
|
#undef LOCAL
|
||||||
|
|
||||||
END_PROC_TYPE(argb):
|
END_PROC_TYPE(argb):
|
||||||
.size PROC_TYPE(argb),END_PROC_TYPE(argb)-PROC_TYPE(argb)
|
.size PROC_TYPE(argb),END_PROC_TYPE(argb)-PROC_TYPE(argb)
|
||||||
|
|||||||
@@ -19,6 +19,9 @@
|
|||||||
**
|
**
|
||||||
** $Header$
|
** $Header$
|
||||||
** $Log$
|
** $Log$
|
||||||
|
** Revision 1.2 2000/10/03 18:29:57 mercury
|
||||||
|
** 003-clean_up_h3-000, h3 tree cleanup.
|
||||||
|
**
|
||||||
** Revision 1.1.1.1 1999/12/07 21:49:43 joseph
|
** Revision 1.1.1.1 1999/12/07 21:49:43 joseph
|
||||||
** Initial checkin into SourceForge.
|
** Initial checkin into SourceForge.
|
||||||
**
|
**
|
||||||
@@ -38,8 +41,8 @@
|
|||||||
** I/O Macros
|
** I/O Macros
|
||||||
*/
|
*/
|
||||||
#warning Here!
|
#warning Here!
|
||||||
#define HWC_IO_LOAD(regInfo, reg, val)
|
#define HWC_IO_LOAD(regInfo, reg, val) \
|
||||||
GDBG_INFO(120, "%s: Storing 0x%x to IO Register %s\n",
|
GDBG_INFO(120, "%s: Storing 0x%x to IO Register %s\n", \
|
||||||
((SstIORegs *) regInfo.ioMemBase)->
|
((SstIORegs *) regInfo.ioMemBase)->
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -59,4 +59,4 @@ export FX_NO_GET_BOF=1
|
|||||||
export FX_GLIDE_HW
|
export FX_GLIDE_HW
|
||||||
export SCRIPTDIR=$(TOPDIR)/swlibs/include/make
|
export SCRIPTDIR=$(TOPDIR)/swlibs/include/make
|
||||||
|
|
||||||
include swlibs/include/make/3dfx.linux.mak
|
include swlibs/include/make/3dfx.mak
|
||||||
|
|||||||
Reference in New Issue
Block a user