]> git.baikalelectronics.ru Git - kernel.git/commit
qxl: hook monitors_config updates into crtc, not encoder.
authorGerd Hoffmann <kraxel@redhat.com>
Fri, 20 Apr 2018 07:19:03 +0000 (09:19 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 27 Apr 2018 06:58:05 +0000 (08:58 +0200)
commit458a97db2c9879297472542a68190bbb0e828aad
tree515f73bff6567d208e3825392bea3e1dac2c157d
parentb44207237b5c45ce49697160986dcdd487b441b7
qxl: hook monitors_config updates into crtc, not encoder.

The encoder callbacks are only called in case the video mode changes.
So any layout changes without mode changes will go unnoticed.

Add qxl_crtc_update_monitors_config(), based on the old
qxl_write_monitors_config_for_encoder() function.  Hook it into the
enable, disable and flush atomic crtc callbacks.  Remove monitors_config
updates from all other places.

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1544322
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Link: http://patchwork.freedesktop.org/patch/msgid/20180420071904.24276-4-kraxel@redhat.com
drivers/gpu/drm/qxl/qxl_cmd.c
drivers/gpu/drm/qxl/qxl_display.c