Commit 38bdcfc1 authored by Ben Skeggs's avatar Ben Skeggs

drm/nouveau/kms: fix setting of default values for dithering properties

Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent 34440ed6
...@@ -1276,18 +1276,18 @@ nouveau_connector_create(struct drm_device *dev, int index) ...@@ -1276,18 +1276,18 @@ nouveau_connector_create(struct drm_device *dev, int index)
break; break;
default: default:
if (disp->dithering_mode) { if (disp->dithering_mode) {
nv_connector->dithering_mode = DITHERING_MODE_AUTO;
drm_object_attach_property(&connector->base, drm_object_attach_property(&connector->base,
disp->dithering_mode, disp->dithering_mode,
nv_connector-> nv_connector->
dithering_mode); dithering_mode);
nv_connector->dithering_mode = DITHERING_MODE_AUTO;
} }
if (disp->dithering_depth) { if (disp->dithering_depth) {
nv_connector->dithering_depth = DITHERING_DEPTH_AUTO;
drm_object_attach_property(&connector->base, drm_object_attach_property(&connector->base,
disp->dithering_depth, disp->dithering_depth,
nv_connector-> nv_connector->
dithering_depth); dithering_depth);
nv_connector->dithering_depth = DITHERING_DEPTH_AUTO;
} }
break; break;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment