]> git.proxmox.com Git - mirror_ubuntu-zesty-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)
commite582b6c7e7f9d0b1e30e8017e4082d3a9ede3310
tree0ab5994a6920b71815ed153573e0db989282c591
parent5883980313af70aec0ceebaef6ef0709726e5e63
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