Skip to content

Draft: drm/dpu: Add support for DSPP GC block to enable Gamma LUT capability

I wanted to enable Night Light option in phosh for my OnePlus 6.

I fell in the rabbit hole and found the root cause to be a missing driver for the DPU DSPP GC block.
I was able to write a driver by using the downstream kernel as a reference and some test on a real phone.

The driver is working and I noticed no issues or side effects.

This driver exposes the GAMMA_LUT drm property which enables the Night Light feature in GNOME and phosh. The same feature could also be used for display color correction (ICC profile), but colord is refusing to run without an EDID profile (we don't have one).

The same driver should also apply to other similar Qualcomm SoC as they all share the same DPU driver.

Merge request reports

Loading