This patch enables OpenGL/ES applications to use the HW accelerated graphics driver while the Xserver composition uses the software rendered.
This new addition to the modesetting driver can be enabled adding the msdri3 parameter on the AccelMethod option. So glamor will not be enabled for the KMS modesetting driver.
Section "Device" Identifier "kms" Driver "modesetting" Option "AccelMethod" "msdri3" EndSection
The motivation of this work is to avoid Xserver to use CMA memory on Raspberry Pi  VC4 driver, so Xserver doesn't suffer on allocation memory errors that would crash desktop environment when we run out of GPU/CMA memory.
This setup is only expected to be used for pre-RPi4 hw, as RPI4 V3D has MMU so the limitation of CMA availability is not an issue for the Xserver regular operation.
Signed-off-by: Christopher Michael firstname.lastname@example.org
Signed-off-by: Jose Maria Casanova Crespo email@example.com