Add support for NVidia cards.

rebased

r? @metajack