mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-02 06:30:15 +01:00
[modesetting-101] Actually store properties when being changed.
This commit is contained in:
parent
01ee5eda9a
commit
71906e86e8
2 changed files with 20 additions and 0 deletions
|
|
@ -2017,6 +2017,9 @@ int drm_mode_connector_property_set_ioctl(struct drm_device *dev,
|
|||
}
|
||||
}
|
||||
|
||||
/* store the property value */
|
||||
drm_connector_property_set_value(connector, property, out_resp->value);
|
||||
|
||||
if (connector->funcs->set_property)
|
||||
ret = connector->funcs->set_property(connector, property, out_resp->value);
|
||||
|
||||
|
|
|
|||
|
|
@ -663,6 +663,23 @@ int nv50_kms_crtc_set_config(struct drm_mode_set *set)
|
|||
goto out;
|
||||
}
|
||||
}
|
||||
|
||||
/* update dpms state to DPMSModeOn */
|
||||
for (i = 0; i < set->num_connectors; i++) {
|
||||
drm_connector = set->connectors[i];
|
||||
if (!drm_connector) {
|
||||
DRM_ERROR("No connector\n");
|
||||
goto out;
|
||||
}
|
||||
|
||||
rval = drm_connector_property_set_value(drm_connector,
|
||||
dev->mode_config.dpms_property,
|
||||
DPMSModeOn);
|
||||
if (rval != 0) {
|
||||
DRM_ERROR("failed to update dpms state\n");
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
display->update(display);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue