mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-20 21:00:12 +01:00
NV50: minor fix
This commit is contained in:
parent
e1cd21bcc8
commit
d495a6e28f
1 changed files with 4 additions and 5 deletions
|
|
@ -408,10 +408,8 @@ int nv50_kms_crtc_set_config(struct drm_mode_set *set)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Now we verified if anything changed, fail if nothing has. */
|
/* Now we verified if anything changed, fail if nothing has. */
|
||||||
if (!modeset && !switch_fb && !blank) {
|
if (!modeset && !switch_fb && !blank)
|
||||||
DRM_ERROR("There is nothing to do, bad input.\n");
|
DRM_INFO("A seemingly empty modeset encountered, this could be a bug.\n");
|
||||||
goto out;
|
|
||||||
}
|
|
||||||
|
|
||||||
/* Validation done, move on to cleaning of existing structures. */
|
/* Validation done, move on to cleaning of existing structures. */
|
||||||
if (modeset) {
|
if (modeset) {
|
||||||
|
|
@ -676,7 +674,8 @@ int nv50_kms_crtc_set_config(struct drm_mode_set *set)
|
||||||
display->last_crtc = crtc->index;
|
display->last_crtc = crtc->index;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (switch_fb || modeset) {
|
/* always reset dpms, regardless if any other modesetting is done. */
|
||||||
|
if (!blank) {
|
||||||
/* this is executed immediately */
|
/* this is executed immediately */
|
||||||
list_for_each_entry(output, &display->outputs, item) {
|
list_for_each_entry(output, &display->outputs, item) {
|
||||||
if (output->crtc != crtc)
|
if (output->crtc != crtc)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue