mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-05-07 01:48:02 +02:00
radeon_ms: another fb fix reset mode if fb changed
This commit is contained in:
parent
060e725a0e
commit
fee64980c4
1 changed files with 2 additions and 1 deletions
|
|
@ -243,7 +243,8 @@ static int radeonfb_set_par(struct fb_info *info)
|
|||
}
|
||||
|
||||
if (par->crtc->enabled) {
|
||||
if (!drm_mode_equal(&par->crtc->mode, drm_mode)) {
|
||||
if (!drm_mode_equal(&par->crtc->mode, drm_mode) ||
|
||||
par->crtc->fb != par->fb) {
|
||||
par->crtc->fb = par->fb;
|
||||
if (!drm_crtc_set_mode(par->crtc, drm_mode, 0, 0)) {
|
||||
return -EINVAL;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue