]> git.baikalelectronics.ru Git - kernel.git/commit
drm/vc4: Add support for gamma ramps.
authorEric Anholt <eric@anholt.net>
Fri, 1 Apr 2016 01:38:20 +0000 (18:38 -0700)
committerEric Anholt <eric@anholt.net>
Mon, 2 May 2016 23:17:10 +0000 (16:17 -0700)
commite8c7d249271fe48a9e3acf236569f202d6d897a1
tree0ab5994a6920b71815ed153573e0db989282c591
parent17812f820c5a2527b5654b26d622c25fd032ecd7
drm/vc4: Add support for gamma ramps.

We could possibly save a bit of power by not requesting gamma
conversion when the ramp happens to be 1:1, but at least if all the
CRTCs are off the SRAM will be disabled.

This should fix brightness sliders in a lot of fullscreen games.

Signed-off-by: Eric Anholt <eric@anholt.net>
drivers/gpu/drm/vc4/vc4_crtc.c
drivers/gpu/drm/vc4/vc4_regs.h