drm/nouveau/kms/nv50: remove code to support non-atomic connector properties
authorBen Skeggs <bskeggs@redhat.com>
Fri, 4 Nov 2016 07:20:36 +0000 (17:20 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Mon, 7 Nov 2016 04:05:01 +0000 (14:05 +1000)
Made completely unreachable by atomic commits.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_connector.c
drivers/gpu/drm/nouveau/nouveau_connector.h
drivers/gpu/drm/nouveau/nouveau_crtc.h
drivers/gpu/drm/nouveau/nv50_display.c

index 790a9ac25844d1a9182122ba8168d8ef9085862b..5df390809f929b1b7ec5c7b688a729d8e694e646 100644 (file)
@@ -767,7 +767,6 @@ nouveau_connector_set_property(struct drm_connector *connector,
        struct nouveau_connector *nv_connector = nouveau_connector(connector);
        struct nouveau_encoder *nv_encoder = nv_connector->detected_encoder;
        struct drm_encoder *encoder = to_drm_encoder(nv_encoder);
-       struct nouveau_crtc *nv_crtc = NULL;
        int ret;
 
        if (connector->dev->mode_config.funcs->atomic_commit)
@@ -784,24 +783,17 @@ nouveau_connector_set_property(struct drm_connector *connector,
        }
 
        nv_connector->scaling_mode = asyc->scaler.mode;
-       nv_connector->underscan = asyc->scaler.underscan.mode;
-       nv_connector->underscan_hborder = asyc->scaler.underscan.hborder;
-       nv_connector->underscan_vborder = asyc->scaler.underscan.vborder;
        nv_connector->dithering_mode = asyc->dither.mode;
-       nv_connector->dithering_depth = asyc->dither.depth;
 
-       if (connector->encoder && connector->encoder->crtc)
-               nv_crtc = nouveau_crtc(connector->encoder->crtc);
-       if (!nv_crtc)
-               return 0;
-
-       nv_crtc->vibrant_hue = asyc->procamp.vibrant_hue - 90;
-       nv_crtc->color_vibrance = asyc->procamp.color_vibrance - 100;
-
-       ret = drm_crtc_helper_set_mode(&nv_crtc->base, &nv_crtc->base.mode,
-                                      nv_crtc->base.x, nv_crtc->base.y, NULL);
-       if (!ret)
-               return -EINVAL;
+       if (connector->encoder && connector->encoder->crtc) {
+               ret = drm_crtc_helper_set_mode(connector->encoder->crtc,
+                                             &connector->encoder->crtc->mode,
+                                              connector->encoder->crtc->x,
+                                              connector->encoder->crtc->y,
+                                              NULL);
+               if (!ret)
+                       return -EINVAL;
+       }
 
        return 0;
 }
@@ -1354,7 +1346,6 @@ nouveau_connector_create(struct drm_device *dev, int index)
                break;
        default:
                nv_connector->dithering_mode = DITHERING_MODE_AUTO;
-               nv_connector->dithering_depth = DITHERING_DEPTH_AUTO;
                break;
        }
 
index 77bb69ec9d34af600f992be72b21d983c72e57e7..096983c42a1fb5cc1660c4ce36650aaaeb70342c 100644 (file)
@@ -46,12 +46,7 @@ struct nouveau_connector {
        struct drm_dp_aux aux;
 
        int dithering_mode;
-       int dithering_depth;
        int scaling_mode;
-       bool scaling_full;
-       int underscan;
-       u32 underscan_hborder;
-       u32 underscan_vborder;
 
        struct nouveau_encoder *detected_encoder;
        struct edid *edid;
index e4e385783b8dccfa77f48b2d31c7e794380f1b79..050fcf30a0d2015baf7f244c3a7b4f58b964eca0 100644 (file)
@@ -38,8 +38,6 @@ struct nouveau_crtc {
        uint32_t dpms_saved_fp_control;
        uint32_t fp_users;
        int saturation;
-       int color_vibrance;
-       int vibrant_hue;
        int sharpness;
        int last_dpms;
 
index c6053486f1f668bca4165bf09301aba83dd2fb9a..8d48ee47514939365df2100259ab797dbe6e6017 100644 (file)
@@ -2595,8 +2595,6 @@ nv50_crtc_create(struct drm_device *dev, int index)
                return -ENOMEM;
 
        head->base.index = index;
-       head->base.color_vibrance = 50;
-       head->base.vibrant_hue = 0;
        for (i = 0; i < 256; i++) {
                head->base.lut.r[i] = i << 8;
                head->base.lut.g[i] = i << 8;