diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-14 08:23:38 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2016-03-14 08:23:38 +0000 |
commit | 02f67386a3d4046e816ede8c6de4061451696ccf (patch) | |
tree | 6f720304dbd5cc590b43fab5ad803b6078c97b05 /src/sna | |
parent | 5489402ca1fe17d5b4d20e4dcdc6ac8e6e415b0b (diff) |
sna: Set initial gamma_size to 256 when loading from hardware
If the preallocated gamma ramp is not 256 elements in size we replace it
with a fresh array that is. When doing so, we need to specify the new
size.
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'src/sna')
-rw-r--r-- | src/sna/sna_display.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/sna/sna_display.c b/src/sna/sna_display.c index 9821c596..92563008 100644 --- a/src/sna/sna_display.c +++ b/src/sna/sna_display.c @@ -6661,6 +6661,7 @@ static void crtc_init_gamma(xf86CrtcPtr crtc) crtc->gamma_red = gamma; crtc->gamma_green = gamma + 256; crtc->gamma_blue = gamma + 2*256; + crtc->gamma_size = 256; } } } |