diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-14 08:26:54 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-14 08:26:54 +0000 |
commit | ba85e22c14ed243826d3edf35dd3813d23708d89 (patch) | |
tree | d8e13a6603f080ecada784988b3cc36419d0844c /src/sna | |
parent | 02f67386a3d4046e816ede8c6de4061451696ccf (diff) |
sna: When creating CRTC after initialisation, manually create the RR gamma
RRCrtcCreate does not automatically inherit the gamma ramp, but we must
call RRCrtcGammaGet ourselves instead. Otherwise the ramp is left as 0
and this will then overwrite our gamma on VT switch (as for whatever
reason it is reapplied).
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=94465
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna')
-rw-r--r-- | src/sna/sna_display_fake.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_display_fake.c b/src/sna/sna_display_fake.c index a07fe0fa..7468326d 100644 --- a/src/sna/sna_display_fake.c +++ b/src/sna/sna_display_fake.c @@ -298,6 +298,7 @@ static bool add_fake_output(struct sna *sna, bool late) RRCrtcSetRotations(crtc->randr_crtc, RR_Rotate_All | RR_Reflect_All); + RRCrtcGammaGet(crtc->randr_crtc); } sna->mode.num_fake++; |