Korona wrote:
Due to the nature of the NVIDIA drivers, they might actually be the most reusable ones. If you supported an appropriate /dev/nvidiactl and /dev/nvidia0, it might be possible to run the userspace binary blob unchanged (provided that you also have the other components of the Linux graphics stack, like X11). The NVIDIA device nodes are open source (e.g., the FreeBSD code is quite readable) and mostly expose ACPI power management and PCI BAR access.
I was thinking this, but didn't say it because it's been more than 10 years since I looked into it. At the time, the license didn't actually allow me to look into it as literally as I did,
but I can confirm there's a source-code wrapper around the blob.
I'm not even sure you'd actually need X11, just something providing the functionality of GLX: coordinating the OpenGL-drawn regions with the window system.