VOGONS


Chrome9 (VX800/820/855/875/900) Windows 98 Driver

Topic actions

Reply 60 of 70, by bmwsvsu

User metadata
Rank Member
Rank
Member

The mere fact that you've gotten this to this level of compatibility in such a short time is an impressive feat. It is quite apparent - from this along with the Velocity 9x project, that AI coding (love it or hate it) is going to be the future of getting older operating systems running on newer hardware. While I've only tested on single chip on a Velocity 9x driver (the Radeon x1200), your driver is already leaps and bounds ahead of that one.

Reply 61 of 70, by 360alaska2

User metadata
Rank Newbie
Rank
Newbie

Words influence both what an LLM thinks you want and which approach it takes. Two requests can have the same intended meaning yet produce different investigations. Urgency and criticism add further signals about priorities, acceptable effort, and whether the previous answer should be reconsidered.

Different words create different numerical inputs. “Check for bugs” and “inspect for defects” become different token sequences. The network processes those tokens alongside the code and conversation. Similar meanings can produce similar internal representations, while still changing the probabilities of subsequent actions. arxiv.org

Small differences can grow through successive decisions. One review might begin with successful draw calls, while another starts with failed allocations. Each discovery influences the next search. The following paths are illustrative. Either wording could lead to either path, and research confirms that equivalent phrasing can produce inconsistent results.

The attachment mermaid-diagram(1).png is no longer available

Urgency changes the apparent priorities. “Finish immediately” suggests a short turnaround. “Missing an error would be costly, so verify carefully” emphasizes thoroughness. Both express urgency, but they request different behavior. A model may respond by shortening its answer, extending its investigation, or concentrating on whichever consequence appears most important.

A fabricated threat adds another problem to interpret. The prompt now contains the technical task and a claimed danger or punishment. Depending on the system, the response may emphasize verification, reassurance, or safety assistance. Our earlier exchange demonstrated that redirection. Whether the claim is true cannot always be established from the text.

The attachment mermaid-diagram(2).png is no longer available

Emotional pressure can affect performance, but the evidence is mixed. Early studies reported improvements on selected tasks. A later Wharton study found no reliable overall benefit from threats or rewards, although particular questions improved or worsened. These findings leave room for your Grok observation without establishing threats as a dependable optimization. arxiv.org

“You can do better” introduces a revision instruction. The previous answer becomes material to examine, and the model gets another opportunity to find omissions, challenge assumptions, or choose another method. Research on structured self-feedback has demonstrated improvements across several tested tasks. papers.nips.cc

That instruction can influence the response even when you have no evidence that it can improve. Your statement still communicates dissatisfaction and requests another attempt. It supplies little information about where the answer failed, however. The next attempt might discover something valuable, elaborate unnecessarily, or pursue an unhelpful direction.

Criticism can also cause an incorrect revision. A model may change a sound answer because the conversation suggests it should find something wrong. Research on reasoning tasks has found that self-correction without external feedback sometimes reduces accuracy. Tests, counterexamples, and concrete observations help distinguish improvement from mere change.

The attachment mermaid-diagram(3).png is no longer available
The attachment You can do better, LLM.png is no longer available

Reply 62 of 70, by 360alaska2

User metadata
Rank Newbie
Rank
Newbie
bmwsvsu wrote on Yesterday, 21:50:

The mere fact that you've gotten this to this level of compatibility in such a short time is an impressive feat. It is quite apparent - from this along with the Velocity 9x project, that AI coding (love it or hate it) is going to be the future of getting older operating systems running on newer hardware. While I've only tested on single chip on a Velocity 9x driver (the Radeon x1200), your driver is already leaps and bounds ahead of that one.

I want to address that specifically and say, first of all, I'm a big fan of his work. But the problem I can see is that the scope is simply too broad. I'm working on three systems, two of which share 99% of the code, and the other one probably shares 75% of the code. What we need is individual humans working on specific families of chips.

I work IT, and I'm basically on call, although I do have to go to an office. So I'm spending about 8 to 10 hours a day on this. I'm using IPKVMs as well, so I can remote to other machines at my house while I'm at work to run tests. This is a labor of love for me.

A lot of the continuous improvement stems around asking LLMs to check each other's work. Some of them also can be egotistical. It can help to tell them that the work is not theirs or that the work is a competitor's, and that I think they can do better.

The attachment Untitled.png is no longer available

Consider the LLM actually coding your code as a master builder. You don't want to give him any Junk. LLMs, even good ones, do have limits, and context length is one of those limits.

The attachment Untitled.png is no longer available

On a side note, I'm possibly an Aspie, so it's difficult for me to comprehend why giving LLMs synonyms create different outputs. It's actually made me further consider the words I use with other humans.

Reply 63 of 70, by 360alaska2

User metadata
Rank Newbie
Rank
Newbie
pyrogx wrote on Yesterday, 19:26:

I checked the location of the framebuffer BARs with various memory sizes. The BARs move around, their current location can be read from the PCI config space registers. The driver should be able to read these and set up the PCI device properly when Windows boots up. inf file workarounds should not be necessary.
I've attached a few files from a DOS pci info tool and a dump of the HKLM/ENUM/PCI branch for the Chrome9 device.

Quick question, I'm assuming the resource allocation issue happens with all VRAM/frame buffer sizes?

claude:

If Code 12 happens at every size, that's useful: it rules out the one way the size could have mattered, and points straight at the BIOS's tables.

Why it could have mattered: the frame-buffer window has to start on a boundary equal to its own size. A 256 MB window needs a free 256 MB slot on a 256 MB boundary, and below 4 GB there are only a handful of those; a 64 MB window has far more places to go. So if Code 12 had appeared only at 256 MB, the cause would have been "Windows 98 can't find room", and 128 MB would have been a workaround.

It happening at 64 MB too means it isn't a room problem. At 64 MB the BIOS puts the three windows at F0000000–FBFFFFFF, and Windows still won't accept them. So Windows 98 is refusing the BIOS's addresses outright. The usual cause is the BIOS's resource tables (ACPI or plug-and-play) listing that address range as reserved for the motherboard. Windows then treats the BIOS's own assignment as a conflict and can't find anywhere else either.

That doesn't change the fix: the early VxD reads the BIOS's addresses at boot and gives them to Windows as the device's settings, whatever the size. It just means there's no interim workaround for him beyond the manual settings he already uses.

Reply 64 of 70, by 360alaska2

User metadata
Rank Newbie
Rank
Newbie

The driver has come a long way on the DirectX 7 side. Games talk to it through the DirectX 7 driver interface, and underneath it builds the chip's own pixel programs from the texture stage settings. It does its own hardware-style T&L on the CPU, culls and clips early, and batches work through the command ring. Build after build the gains have been getting smaller, and my estimate is that we're at, or within about 10% of, what this approach can reach.

So the next step is clear: DirectX 8 support in the driver itself.

Right now, when a DirectX 8 or 9 game runs, Microsoft's runtime translates everything down to DirectX 7 before the driver sees it. Vertex and index buffers get copied, and shader declarations get turned back into the old vertex formats. With the DirectX 8 driver interface, the runtime hands the driver its buffers directly, and that opens the door to the chip's pixel shader hardware. The Chrome9 is a Shader Model 2.0 part, and so far we've only used a small slice of it.

The first piece is already written and is being tested. It's off by default behind a switch. It answers the DirectX 8 capability queries and turns DirectX 8 draws into the paths the driver already has, so everything built so far carries over.

After that:
- measure how much of each frame the runtime's translation costs, DirectX 8 on versus off
- pixel shaders 1.x and 2.0 on the hardware, building on what we've learned about the chip's shader instruction format
- more texture stages and texture coordinate sets, which DirectX 6 and 7 games can use too

Older DirectX 5, 6 and 7 games keep using the DirectX 7 path, which isn't going anywhere. They'll still benefit from the shader hardware work underneath.

The VX800 and VX900 keep getting the same driver, as before.

Thanks to everyone who has been testing and posting results.

Reply 65 of 70, by mwdmeyer

User metadata
Rank Oldbie
Rank
Oldbie
360alaska2 wrote on Today, 02:04:
The driver has come a long way on the DirectX 7 side. Games talk to it through the DirectX 7 driver interface, and underneath it […]
Show full quote

The driver has come a long way on the DirectX 7 side. Games talk to it through the DirectX 7 driver interface, and underneath it builds the chip's own pixel programs from the texture stage settings. It does its own hardware-style T&L on the CPU, culls and clips early, and batches work through the command ring. Build after build the gains have been getting smaller, and my estimate is that we're at, or within about 10% of, what this approach can reach.

So the next step is clear: DirectX 8 support in the driver itself.

Right now, when a DirectX 8 or 9 game runs, Microsoft's runtime translates everything down to DirectX 7 before the driver sees it. Vertex and index buffers get copied, and shader declarations get turned back into the old vertex formats. With the DirectX 8 driver interface, the runtime hands the driver its buffers directly, and that opens the door to the chip's pixel shader hardware. The Chrome9 is a Shader Model 2.0 part, and so far we've only used a small slice of it.

The first piece is already written and is being tested. It's off by default behind a switch. It answers the DirectX 8 capability queries and turns DirectX 8 draws into the paths the driver already has, so everything built so far carries over.

After that:
- measure how much of each frame the runtime's translation costs, DirectX 8 on versus off
- pixel shaders 1.x and 2.0 on the hardware, building on what we've learned about the chip's shader instruction format
- more texture stages and texture coordinate sets, which DirectX 6 and 7 games can use too

Older DirectX 5, 6 and 7 games keep using the DirectX 7 path, which isn't going anywhere. They'll still benefit from the shader hardware work underneath.

The VX800 and VX900 keep getting the same driver, as before.

Thanks to everyone who has been testing and posting results.

Yeah, DX8 is a bit of change. I found improving/reducing batches sent to the card and having async going (so CPU can work on next frame while GPU is rendering) make some big improvements with speed. My biggest issue with my driver is CPU overhead now, I need to resolve that. Best result so far about 9000 3dmark2001se (default) with a Radeon R7 250 DDR3 and an AMD FX-6300 (pretty weak single core performance).

You're welcome to use any of that from my driver if it is of any worth to you. I also noticed that getting HW T&L faster than CPU/software is more difficult than expected. I suspect the CPUs are so fast now that it probably doesn't make a big difference.

I want to add multi-core CPU offload support in future!

Vogons Wiki - http://vogonswiki.com

Reply 66 of 70, by 360alaska2

User metadata
Rank Newbie
Rank
Newbie

Thanks for the offer. I think I'll have my bots take a look at it. One way I was able to increase my TNL performance was to have my bots look at and dismantle DirectX's TNL implementation. Reverse engineer that, and then build off of it specifically for my systems.

Reply 67 of 70, by mwdmeyer

User metadata
Rank Oldbie
Rank
Oldbie
360alaska2 wrote on Today, 02:46:

Thanks for the offer. I think I'll have my bots take a look at it. One way I was able to increase my TNL performance was to have my bots look at and dismantle DirectX's TNL implementation. Reverse engineer that, and then build off of it specifically for my systems.

Yeah that is a good idea! Good luck with it!

Vogons Wiki - http://vogonswiki.com

Reply 68 of 70, by myne

User metadata
Rank l33t
Rank
l33t

My understanding is that Microsoft are big fans of thunking an old function into a new one.
Ie, the old function still exists as a tiny shim to rearrange/fit the bits, before passing it to its successor.

Eg if you "copy x.txt c:" from cmd it still has a tiny dos compatible interface that orders it appropriately, and then calls copyfileA/copyfilew/copyfileex.

So... if that is correct, it would seem like it may be more efficient for both of you to target full directX 9C which should automatically include all of the previous versions.
Obviously some of the hardware won't have the features, but it was said at the time to improve cpu usage.

I built:
Convert old ASUS ASC boardviews to KICAD PCB!
Re: A comprehensive guide to install and play MechWarrior 2 on new versions on Windows.
Dos+Windows 3.11+tcp+vbe_svga auto-install iso template
Script to backup Win9x\ME drivers from a working install
Re: The thing no one asked for: KICAD 440bx reference schematic

Reply 69 of 70, by 360alaska2

User metadata
Rank Newbie
Rank
Newbie

Yes and no, As far as I understand, DirectX 7 and below is a pass-through to DirectX 7. So I need a strong instruction set there, or I could end up having a decent DirectX 8 but missing features for DirectX 7 and below.

Claude:

DirectX 3 to 7 games run on the DirectDraw and Direct3D 7 runtime (ddraw.dll and d3dim700.dll), which DX9c still ships. It funnels all the older interfaces into the DX7 driver interface. That's the "pass-through to DX7" you described.

DirectX 8 games run on d3d8.dll, and DirectX 9 games on d3d9.dll. Each talks to the driver through its own, newer interface.

Nothing converts a DX7 call into a DX9 call on the way to the driver. If the DX7 path is weak, every DX7-and-older game is weak, however good the DX9 support is. Our own DX8 layer actually works the other way round: it translates DX8 commands into the proven DX7 path.

Reply 70 of 70, by 360alaska2

User metadata
Rank Newbie
Rank
Newbie

So yesterday I decided to hand my builds TNL/D3D/OpenGL path to a new Fable extra session: I asked for a complete rebuild. I don't want to oversell it, and I can't give it to you yet. Or I guess I can, but it's experimental.

The uplift is somewhere between 15 and 20%. But it hasn't been bug checked yet. I'll go ahead and give it to you.

This is a completely different "E" branch. I'm going to shake it down and eventually roll it back to the master. This also has experimental DirectX 8 support, which I have not even turned on yet.