Re: [Intel-gfx] [PATCH 01/10] drm: Initialize a linear gamma table by default

2016-05-31 Thread Maarten Lankhorst
Op 31-05-16 om 15:24 schreef Daniel Vetter: > On Tue, May 31, 2016 at 03:05:32PM +0200, Maarten Lankhorst wrote: >> Op 30-03-16 om 11:51 schreef Daniel Vetter: >>> Code stolen from gma500. >> It would be useful to mention why this is done. :) >> >> But even with this patch it seems the legacy

Re: [Intel-gfx] [PATCH 01/10] drm: Initialize a linear gamma table by default

2016-05-31 Thread Daniel Vetter
On Tue, May 31, 2016 at 03:05:32PM +0200, Maarten Lankhorst wrote: > Op 30-03-16 om 11:51 schreef Daniel Vetter: > > Code stolen from gma500. > It would be useful to mention why this is done. :) > > But even with this patch it seems the legacy gamma in gamma_get is not very > reliable. > A

Re: [Intel-gfx] [PATCH 01/10] drm: Initialize a linear gamma table by default

2016-05-31 Thread Maarten Lankhorst
Op 30-03-16 om 11:51 schreef Daniel Vetter: > Code stolen from gma500. It would be useful to mention why this is done. :) But even with this patch it seems the legacy gamma in gamma_get is not very reliable. A failed call to gamma_set could leave wrong values in crtc->gamma_store either by

[Intel-gfx] [PATCH 01/10] drm: Initialize a linear gamma table by default

2016-03-30 Thread Daniel Vetter
Code stolen from gma500. Signed-off-by: Daniel Vetter --- drivers/gpu/drm/drm_crtc.c | 13 + drivers/gpu/drm/gma500/psb_intel_display.c | 7 --- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/drm_crtc.c