diff options
Diffstat (limited to 'drivers/gpu/drm/i915/intel_display.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_display.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/drivers/gpu/drm/i915/intel_display.c b/drivers/gpu/drm/i915/intel_display.c index 93ff6c03733e..ffa39671751f 100644 --- a/drivers/gpu/drm/i915/intel_display.c +++ b/drivers/gpu/drm/i915/intel_display.c | |||
@@ -3244,6 +3244,16 @@ void intel_crtc_fb_gamma_set(struct drm_crtc *crtc, u16 red, u16 green, | |||
3244 | intel_crtc->lut_b[regno] = blue >> 8; | 3244 | intel_crtc->lut_b[regno] = blue >> 8; |
3245 | } | 3245 | } |
3246 | 3246 | ||
3247 | void intel_crtc_fb_gamma_get(struct drm_crtc *crtc, u16 *red, u16 *green, | ||
3248 | u16 *blue, int regno) | ||
3249 | { | ||
3250 | struct intel_crtc *intel_crtc = to_intel_crtc(crtc); | ||
3251 | |||
3252 | *red = intel_crtc->lut_r[regno] << 8; | ||
3253 | *green = intel_crtc->lut_g[regno] << 8; | ||
3254 | *blue = intel_crtc->lut_b[regno] << 8; | ||
3255 | } | ||
3256 | |||
3247 | static void intel_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, | 3257 | static void intel_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green, |
3248 | u16 *blue, uint32_t size) | 3258 | u16 *blue, uint32_t size) |
3249 | { | 3259 | { |
@@ -3835,6 +3845,7 @@ static const struct drm_crtc_helper_funcs intel_helper_funcs = { | |||
3835 | .mode_set_base = intel_pipe_set_base, | 3845 | .mode_set_base = intel_pipe_set_base, |
3836 | .prepare = intel_crtc_prepare, | 3846 | .prepare = intel_crtc_prepare, |
3837 | .commit = intel_crtc_commit, | 3847 | .commit = intel_crtc_commit, |
3848 | .load_lut = intel_crtc_load_lut, | ||
3838 | }; | 3849 | }; |
3839 | 3850 | ||
3840 | static const struct drm_crtc_funcs intel_crtc_funcs = { | 3851 | static const struct drm_crtc_funcs intel_crtc_funcs = { |