r/GraphicsProgramming • u/TheNextJohnCarmack • Dec 20 '21
Question x64 instructions for GPU stuff?
I am thinking about creating an OS, just for myself, but I wanna do 3D games on it. Can I just write my own driver for one specific GPU (nevermind the logistics, this is a hobby project. I just want to know if it is POSSIBLE), and how would I do that?
3
Upvotes
0
u/TheNextJohnCarmack Dec 20 '21
I just don't understand how this is possible. This sounds like a hacker (FOSS enthusiast)'s nightmare if it is true. How is it possible that vendors have made a completely impenetrable software lock on their entire GPU? Surely there must be code that a CPU executes that somehow results in a response in the GPU directly? I mean, how else is it possible for the CPU and GPU to interact?
I am not strictly talking about human-readable APIs either. I'm talking any software that allows direct communication between CPU and GPU at a sub-operating system level. I am willing to painstakingly integrate pure binary into my OS from drivers.