3dfx voodoo chip emulation

Developer's Forum, for discussion of bugs, code, and other developmental aspects of DOSBox.

3dfx voodoo chip emulation

Postby kekko » 2010-8-10 @ 11:15

I'm working on this on my spare time. Up to now only minimal detection code is implemented; I got a big help on this by wd and gulikoza.
The aim is a software implementation of the voodoo1 (SST-1) chip. Documentation mainly comes from SST-1 official specs, found on this page.

The card seem correctly recognized (that was the easy part)
Image

The chip is programmed through memory-mapped i/o, the code framework for chip registers handling is already in place (no reg is actually handled yet).
Image

If you're wondering why dosbox should have this, well, voodoo chip emulation would virtually give:
- higher compatibility with titles (even those with integrated .ovl)
- portability
- integration with dosbox internal renderer: full-screen, different output modes and video capture would be supported
- no need of external libs
- d3d support for win9x games !!!

I'm looking for people that want to help; please post any comment on this thread.

____________________________________________________________________________

EDIT: I attached the latest patch here. Apply to official sources:
voodoo_20101127.diff patch

You can use the Windows diff/patch tools in order to apply a patch to the sources:
Windows diff/patch tools

Use this syntax to apply a patch:
Code: Select all
patch -p0 -E <diffname.diff

Last edited by kekko on 2011-1-02 @ 18:20, edited 1 time in total.
User avatar
kekko
Member
 
Posts: 476
Joined: 2004-3-24 @ 18:56

Re: 3dfx voodoo chip emulation

Postby Harekiet » 2010-8-10 @ 11:18

Thought aaron giles already did a full software voodoo emulator with MAME
User avatar
Harekiet
DOSBox Author
 
Posts: 873
Joined: 2002-7-01 @ 07:14
Location: Fryslan

Re: 3dfx voodoo chip emulation

Postby kekko » 2010-8-10 @ 11:58

You're right, but that implementation is much more complex than needed for our purposes (also emulates voodoo2/banshee, way more complex than voodoo1);
moreover, there's the source code license issue...
User avatar
kekko
Member
 
Posts: 476
Joined: 2004-3-24 @ 18:56

Re: 3dfx voodoo chip emulation

Postby leileilol » 2010-8-10 @ 19:58

Any MMX or SSE optimizations in mind? Are you even going to emulate the characteristic Voodoo dither and all the switches? Emulating the Voodoo1 in software is already an ambitious goal.
94cheen : AM5x86P75ADW@160mhz; AWE64; Trio64v+ 1mb; 95C
97cheen : PII-300; 440LX; AWE32 8MB; Voodoo3 3000 16mb; Voodoo2 12mb; 98se
pvrcheen : P4 2.8GHz Northwood; SBPCI128; Rage128 32mb; PowerVR PCX2 4mb; 98se
User avatar
leileilol
l33t++
 
Posts: 5422
Joined: 2006-12-16 @ 18:03

Re: 3dfx voodoo chip emulation

Postby kekko » 2010-8-11 @ 08:07

well, I was thinking about running the rasterizer on another thread, should be quite straightforward to do
User avatar
kekko
Member
 
Posts: 476
Joined: 2004-3-24 @ 18:56

Re: 3dfx voodoo chip emulation

Postby OSH » 2010-8-11 @ 10:16

Kekko, when will be a binary version available?
User avatar
OSH
Member
 
Posts: 165
Joined: 2007-10-28 @ 23:34

Re: 3dfx voodoo chip emulation

Postby wd » 2010-8-11 @ 10:54

When it's finished.
wd
DOSBox Author
 
Posts: 10819
Joined: 2003-12-03 @ 21:23

Re: 3dfx voodoo chip emulation

Postby OSH » 2010-8-11 @ 11:18

wd, I know, but I've asked kekko, not you. Perhaps he will make a binary for test purposes only, BEFORE this project will be completely done.
User avatar
OSH
Member
 
Posts: 165
Joined: 2007-10-28 @ 23:34

Re: 3dfx voodoo chip emulation

Postby wd » 2010-8-11 @ 11:45

Yes and the first thing needed is people asking when it's finished.
wd
DOSBox Author
 
Posts: 10819
Joined: 2003-12-03 @ 21:23

Re: 3dfx voodoo chip emulation

Postby kekko » 2010-8-28 @ 17:10

I had not much free time lately, but I'm still working on this.
Most of the games pass the detection routines now, some of the directx games crash on ddraw and need further debugging, while others are sending geometry data and textures to the chip, so they're working! (more or less)
there should be some good news in the coming days... meanwhile, enjoy this screenshot from tr3:

Image
User avatar
kekko
Member
 
Posts: 476
Joined: 2004-3-24 @ 18:56

Re: 3dfx voodoo chip emulation

Postby OSH » 2010-8-28 @ 17:11

Keep up good work Kekko!
User avatar
OSH
Member
 
Posts: 165
Joined: 2007-10-28 @ 23:34

Re: 3dfx voodoo chip emulation

Postby Freddo » 2010-8-28 @ 20:07

This is very cool, I wish you the best of luck with it! :)
User avatar
Freddo
Oldbie
 
Posts: 579
Joined: 2003-10-29 @ 21:56
Location: Sweden

Re: 3dfx voodoo chip emulation

Postby keropi » 2010-8-28 @ 22:00

awesome project you have there!!! keep up the good works amigo!
Image
Image Dead Roland SC-55 MK2 wanted , click me for AmiBay ad!
Image Free bios/firmware/program chip burning service for active VOGONS members. PM me.
User avatar
keropi
l33t
 
Posts: 3152
Joined: 2003-9-08 @ 06:45
Location: Greece

Re: 3dfx voodoo chip emulation

Postby robertmo » 2010-8-29 @ 08:29

you can do cycles=max 105% in dosbox 0.74

By the way, shouldn't 3dfx emulation be done by another core in order to get any speed up effects compared to software mode?
User avatar
robertmo
l33t
 
Posts: 4033
Joined: 2003-6-18 @ 10:35

Re: 3dfx voodoo chip emulation

Postby rcblanke » 2010-8-29 @ 14:39

Thanks for your efforts kekko, keep it up!
User avatar
rcblanke
Oldbie
 
Posts: 1204
Joined: 2005-4-01 @ 09:44
Location: Round 42

Re: 3dfx voodoo chip emulation

Postby valnar » 2010-8-30 @ 17:04

kekko,
I'll donate some $$ to get this working and integrated into DOSBox. Send me your Paypal.

Awesome idea!
valnar
Oldbie
 
Posts: 611
Joined: 2002-7-17 @ 13:50

Re: 3dfx voodoo chip emulation

Postby kekko » 2010-8-30 @ 19:25

As I anticipated, we have some good news, and sooner than expected...
Aaron Giles has just updated mame's voodoo code license to a BSD license, starting from patch 0.139u2.
I would like to thank Aaron and Stiletto for their support.

valnar wrote:kekko,
I'll donate some $$ to get this working and integrated into DOSBox. Send me your Paypal.

Awesome idea!


hehe, thank you, but I can't accept; I'm working on this on my spare time and I don't know if and when this will be finished. For this reason I'm looking for some help.
Donate to the dosbox project instead, but only if you manage to convince them to help me ;)
User avatar
kekko
Member
 
Posts: 476
Joined: 2004-3-24 @ 18:56

Re: 3dfx voodoo chip emulation

Postby wd » 2010-8-30 @ 21:31

You threw your own head into the swamp, now you gotta pull it out yourself ;)

Donations to the project are spent on the server costs, so not lost in pizza.
But yeah maybe money-feed kekko once he's finished, otherwise he always
has the feeling of responsibility which hurts the fun factor.
wd
DOSBox Author
 
Posts: 10819
Joined: 2003-12-03 @ 21:23

Re: 3dfx voodoo chip emulation

Postby kekko » 2010-8-30 @ 21:46

wise words, my friend :)
p.s. just kidding about the donation-for-help, I believe we all know and appreciate all the efforts spent to keep this project up and running :)
User avatar
kekko
Member
 
Posts: 476
Joined: 2004-3-24 @ 18:56

Re: 3dfx voodoo chip emulation

Postby Qbix » 2010-8-31 @ 06:25

So far you managed to get the chip detected right ? You haven't started on working on the texture stuff or do you have something there already ?
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 9688
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Next

Return to DOSBox Development

Who is online

Users browsing this forum: No registered users and 1 guest