Commit Graph

610 Commits

Author SHA1 Message Date
koolsmoky
18c63bcf35 compensated 64bit changes 2007-05-19 19:24:42 +00:00
koolsmoky
ee0637513a added extra trilinear checks and 1chip x2fsaa for subsample lod dithering 2007-05-19 11:44:24 +00:00
koolsmoky
0e30810868 conserve packets in TWO_TRI_FILL code 2007-05-19 11:32:43 +00:00
koolsmoky
7f952e5fd9 win32 build workaround 2007-05-19 11:06:47 +00:00
koolsmoky
59f561890c force 4x4 dither with alpha dither subtraction 2007-05-19 10:58:19 +00:00
koolsmoky
eac64a908e included ctype.h for toupper 2007-05-19 10:54:10 +00:00
koolsmoky
04ef64970f packed rgb fixes 2007-05-19 08:38:01 +00:00
koolsmoky
8749e39edc packed rgb fixes
force 4x4 dither with alpha dither subtraction
2007-05-19 08:37:25 +00:00
koolsmoky
9a6eac9c31 packed rgb fixes 2007-05-19 08:29:25 +00:00
koolsmoky
075b942975 win32 multi-monitor fixes 2007-05-13 09:27:23 +00:00
koolsmoky
034de08665 simple ms os detection
win32 multi-monitor fixes
cleaned up v56k gamma fix
2007-05-13 09:26:51 +00:00
koolsmoky
8756ab93d2 removed problematic context checks 2007-05-13 09:21:06 +00:00
koolsmoky
0d1c03ec4f cleanup 2007-05-13 09:16:26 +00:00
koolsmoky
4d5cadd8c8 simple ms os detection 2007-05-13 09:16:10 +00:00
koolsmoky
e2a6f44d01 simple ms os detection
splash screen dll load unload cleanup
removed autobump testcode
2007-05-13 09:14:36 +00:00
koolsmoky
4fece0a55b remove old ms os detection stuff 2007-05-13 09:08:32 +00:00
koolsmoky
c00327dd0a assure dither subtraction stays off when in 32bpp mode 2007-05-13 09:06:38 +00:00
koolsmoky
682ffd4d33 fix for win32 builds 2007-05-13 09:04:01 +00:00
koolsmoky
06e25214f1 removed old ms os detection stuff 2007-05-13 09:02:57 +00:00
koolsmoky
9072e6d7f9 fix for non-debug builds 2007-05-13 08:56:06 +00:00
guillemj
47aabade08 Fix regression in GLIDE_VERSION_MINOR, set it to '10.0'. 2007-02-14 20:24:10 +00:00
guillemj
7bbce2ccdb Fix typo. 2007-02-06 05:04:20 +00:00
guillemj
57a15b8aab * 3dfx_driver.c (MODULE_VERSION): Bump to '2007.02.06'. 2007-02-06 04:55:09 +00:00
guillemj
1f3ee6bb30 Fix warnings when not checking pci_register_driver return codes.
* 3dfx_driver.c (findCards): Return int instead of void , and normalize
	error code to be always negative, otherwise return numCards.
	(init_module): Check for findCards return code, print a warning and
	exit the module on error.
	(init_3dfx): Likewise.
2007-02-06 04:50:34 +00:00
guillemj
6fccc2cbdb * 3dfx_driver.c (HAVE_DEVFS): Define to 1 if
LINUX_VERSION_CODE >= 2.3.46 and LINUX_VERSION_CODE <= 2.6.17 or
	if DEVFS_SUPPORT is defined, define to 0 otherwise.
	(devfs_handle): Only use if HAVE_DEVFS.
	(init_module): Only use devfs_mk_cdev or devfs_register if HAVE_DEVFS.
	(cleanup_module): Only use devfs_remove or devfs_unregister if
	HAVE_DEVFS.
2007-02-06 04:32:58 +00:00
guillemj
d919a05407 * Makefile (CFLAGS): Use '-march' instead of the deprecated '-mcpu'. 2007-02-06 04:15:01 +00:00
guillemj
b06c63abed * kinfo.c: Removed.
* kver.c: New file.
	* Makefile: Include kver.mak.
	(KVERS): Move this variable to 'kver.mak', which is a generated file.
	(VERSION_HEADER): New variable to cope with UTS_RELEASE being moved
	from 'linux/version.h' to 'linux/utsrelease.h' in 2.6.18.
	(kver, kver.mak): New targets.
	(KBUILD): New variable.
	(KVER_MAJOR, KVER_MINOR, BUILD_TYPE, MODULE_TDFX): Likewise, moved
	from the generated file 'config'.
	(config, kinfo, kinfo.h): Remove targets.
	(modules, intstall, clean): Do not depend on config target.
	(modules, intstall): Depend on sanity target .
2007-02-06 04:10:21 +00:00
guillemj
8f254569e5 * Makefile (.PHONY): Add clean_kbuild. Rename modules-legacy,
modules-kbuild, install-legacy, install-kbuild and clean-legacy to
	modules_legacy, modules_kbuild, install_legacy, install_kbuild
	and clean_legacy.
2007-02-06 03:37:28 +00:00
guillemj
42a995335e Fix typo. 2007-01-31 01:05:41 +00:00
guillemj
e0fdb356a3 * 3dfx_device.c (cardInfo_t): Make dev be 'struct pci_dev *' even for
kernels < 2.6.0.
	(findCardType): Assign to cards[n].dev the dev variable instead of
	devfn. Fix macro to use devfn instead.
2007-01-31 01:02:21 +00:00
guillemj
e4d0ae4ff1 * 3dfx_device.c (my_remap_page_range): Define as remap_pfn_range for
linux 2.6.10 or higher.
2006-12-03 08:16:01 +00:00
guillemj
22a95077f9 Use the "new" kernel level exception handling for memory accesses
introduced in linux 2.1.8, which obsoletes verify_aread.

	* 3dfx_device.c (doQueryFetch): Remove verify_area and check for
	copy_to_user return values.
	(doPIORead): Likewise.
	(doQueryUpdate): Remove verify_area and check for copy_from_user
	return values.
	(doQuery): Likewise.
	(doPIOWrite): Likewise.
	(doPIO): Likewise.
	(verify_area) [DEBUG]: Remove function.
	(a_last_dummy_function) [DEBUG]: Likewise.
2006-12-03 07:51:02 +00:00
guillemj
8c2fdd661a * 3dfx_device.c (doQueryFetch): Assign desc->device to i, and use it
when referencing cards.
2006-12-03 07:34:28 +00:00
guillemj
3a78ad5818 Remove first forgotten argument from pci_write_config_*. 2006-12-03 07:30:26 +00:00
guillemj
b92f14b42c * 3dfx_device.c (setmtrr_3dfx): Make it static.
(resetmtrr_3dfx): Likewise.
2006-12-03 07:13:34 +00:00
guillemj
3afa27274d Bah, fix typo VMA_OFFSET_ALIGNED -> VM_OFFSET_ALIGNED. 2006-12-03 07:10:47 +00:00
guillemj
97b9d60875 * 3dfx_device.c (id_table_3dfx): Move newar the corresponding ifdef
for older kernels.
	(findCards): Likewise.
	(driver_3dfx): Forward declare.
2006-12-03 07:09:57 +00:00
guillemj
054807b1dd Rename functions obsoleted in linux 2.1.93.
* 3dfx_device.c (pcibios_read_config_byte): Rename to ...
	(pci_read_config_byte): ... this and remove first argument.
	(pcibios_read_config_word): Rename to ...
	(pci_read_config_word): ... this and remove first argument.
	(pcibios_read_config_dword): Rename to ...
	(pci_read_config_dword): ... this and remove first argument.
	(pcibios_write_config_dword): Rename to ...
	(pci_write_config_dword): ... this and remove first argument.
2006-12-03 06:50:14 +00:00
guillemj
526262f4a6 * 3dfx_device.c (VMA_OFFSET_ALIGNED): New macro.
(mmap_3dfx): Use VMA_OFFSET_ALIGNED, instead of checking for specific
	kernel versions and changing behaviour.
2006-12-03 05:48:58 +00:00
guillemj
0ee0b2add4 Indentation fixes. 2006-12-03 05:42:50 +00:00
guillemj
871c2bcf65 Backport "sequence point" fix for string upper code from glide3x. 2006-12-03 04:49:19 +00:00
guillemj
37d9fc555e Ooops, forgot to add this file.
Backported from glide3x.
2006-12-03 04:47:28 +00:00
guillemj
4372942b61 Remove the shared library on realclean as well. 2006-11-30 09:45:33 +00:00
guillemj
acbd24bb88 Unify library name to be libglide3.
Create the shared library with the full major.minor (taking the number from
old sources).
Create a symlink for the shared library for the .so file.
2006-11-30 09:42:50 +00:00
guillemj
a1e9017af6 No autoconf anymore. 2006-11-30 09:21:28 +00:00
guillemj
1ffbd85481 No TEXUS2 option in glide2x. 2006-11-30 09:18:59 +00:00
guillemj
9c38a603a0 Switch to the new "build system", to be in sync with the rest of glide.
Backport cpudtect.asm from glide3 for h3.
Add fpu.c to cvg.
2006-11-30 09:16:50 +00:00
guillemj
b11bb573b0 Link against fxmisc/fxos.o and fxmisc/fximg.o to match the old library
signature, should be checked if it's really needed.
2006-11-30 09:10:25 +00:00
guillemj
019a1ff4dc Sync Makefile to the general style used in the other libs. 2006-11-30 09:05:08 +00:00
guillemj
fd08c9c716 Link libraries against libm, needed by pow. 2006-11-12 02:38:43 +00:00