Force software rendering on devices that need it
This allows Megapixels to work again without any manual configuration on devices like the original Pine64 PinePhone and Samsung Galaxy Note II.
Signed-off-by: Stefan Hansson newbyte@postmarketos.org
Note that large part of the code is just copied from dcp.c. I tried to generalise it at first, but it ended up being non-trivial to make a generalised version of this code so I decided against it given the rule of three.