|
@@ -7102,27 +7102,6 @@ static int intel_crtc_cursor_move(struct drm_crtc *crtc, int x, int y)
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
|
-/** Sets the color ramps on behalf of RandR */
|
|
|
-void intel_crtc_fb_gamma_set(struct drm_crtc *crtc, u16 red, u16 green,
|
|
|
- u16 blue, int regno)
|
|
|
-{
|
|
|
- struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
|
|
|
-
|
|
|
- intel_crtc->lut_r[regno] = red >> 8;
|
|
|
- intel_crtc->lut_g[regno] = green >> 8;
|
|
|
- intel_crtc->lut_b[regno] = blue >> 8;
|
|
|
-}
|
|
|
-
|
|
|
-void intel_crtc_fb_gamma_get(struct drm_crtc *crtc, u16 *red, u16 *green,
|
|
|
- u16 *blue, int regno)
|
|
|
-{
|
|
|
- struct intel_crtc *intel_crtc = to_intel_crtc(crtc);
|
|
|
-
|
|
|
- *red = intel_crtc->lut_r[regno] << 8;
|
|
|
- *green = intel_crtc->lut_g[regno] << 8;
|
|
|
- *blue = intel_crtc->lut_b[regno] << 8;
|
|
|
-}
|
|
|
-
|
|
|
static void intel_crtc_gamma_set(struct drm_crtc *crtc, u16 *red, u16 *green,
|
|
|
u16 *blue, uint32_t start, uint32_t size)
|
|
|
{
|