Uploaded December 2023 | Updated December 2026, 3 hours ago
Over the last few years the quality of Mesa's drivers has increased exponentially, to the point where many prefer the use of the open source driver to their proprietary counterparts. Open source drivers can have better compatibility, less bugs, and more frequent updates to resolve issues. Because of this uptick in quality, you may want to run the open source drivers on other operating systems such as Android.
In this talk we will explore the work that was required to get Freedreno running on Android. This will include setting up the development environment, loading the driver on real hardware, development tips & tricks, running tests, setup of debugging environment, issues encountered during the porting process, and lastly we will explore some areas of Mesa that could be updated to simplify porting to other operating systems. This talk should provide a guide for anyone looking to get their Mesa driver running on Android.
indico.freedesktop.org/event/4/contributions/198
Over the last few years the quality of Mesa's drivers has increased exponentially, to the point where many prefer the use of the open source driver to their proprietary counterparts. Open source drivers can have better compatibility, less bugs, and more frequent updates to resolve issues. Because of this uptick in quality, you may want to run the open source drivers on other operating systems such as Android.
In this talk we will explore the work that was required to get Freedreno running on Android. This will include setting up the development environment, loading the driver on real hardware, development tips & tricks, running tests, setup of debugging environment, issues encountered during the porting process, and lastly we will explore some areas of Mesa that could be updated to simplify porting to other operating systems. This talk should provide a guide for anyone looking to get their Mesa driver running on Android.
indico.freedesktop.org/event/4/contributions/198






![XDC 2023 | October 19 | dGPU prime on VM | Julia Zhang and Ray Huang
The dGPU prime feature allows an integrated GPU (iGPU) to display output data rendered by a discrete GPU(dGPU). This is a collection of features in the Linux kernel[1], mesa[2] and various drivers under Linux system. The dGPU exports its render buffer to iGPU so that iGPU can display it. This allows switching between iGPU and dGPU to handle more use cases requiring different levels of performance. Usually on bare metal, iGPU and dGPU would use native drivers that support dma-buf operations so this feature works fine. But on XEN guest VM, the iGPU is using the virtio-gpu driver and the passthrough dGPU is using a native driver, so the iGPU cannot import the output data that rendered by the passthrough dGPU directly. This talk introduces our design and implementation of the dGPU prime feature on XEN guest VMs.It creates the display buffer on the iGPU and lets the passthrough dGPU import it as linear buffer and blit the rendered data to it for display. With this, we can now run applications which require high performance on the passthrough dGPU and display on the iGPU in a XEN guest VM.
References:
[1] https://lore.kernel.org/dri-devel/20230705035622.2841499-1-julia.zhang@amd.com/
[2] https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/23896
https://indico.freedesktop.org/event/4/contributions/189/ XDC 2023 | October 19 | dGPU prime on VM | Julia Zhang and Ray Huang](https://i.ytimg.com/vi/QiVY9W3FH3Y/mqdefault.jpg)



