AGP vs PCI mode detection

On the subject of drivers, does anybody know how to detect a user’s video card is in PCI mode instead AGP mode? This can really hurt performance for our application, and is simply fixed by getting motherboard drivers to enable AGP mode for your video card.

nvidia will tell you if you’re in AGP or PCI mode in the renderer string, but I don’t want to parse that incase the new PCI Express cards have the pci substring in them. I think they’re the only vendor to do this.

I’d really like the ability to give the user a helpful popup explaining their substandard performance.

Look through all installed hardware devices, looking for a known AGP bridge. Then look at the driver name string for that AGP bridge, and compare to known “good” names.