Get the latest tech news
Writing a Rust GPU kernel driver: a brief introduction on how GPU drivers work
See how GPU drivers work thanks to VkCube in this Rust-based series for the development of Tyr.
One of the main jobs of the kernel driver is allocating and mapping memory, preferably in a way that promotes isolation through some sort of context that is private to the application. Nevertheless the KMD is responsible for providing key operations such that its user-mode driver is actually implementable, and it must do so in a way that fairly shares the underlying GPU hardware among multiple tasks in the system. Explaining how tiling GPUs work is so far beyond the scope of this series, but for the time being, it is enough to assume that they need a variable amount of internal memory in order to draw the geometry.
Or read this on Hacker News