diff options
author | Gerd Hoffmann <kraxel@redhat.com> | 2017-09-11 11:39:50 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2017-09-12 08:04:09 +0200 |
commit | b0e07da3f5c8d069d186a7983ff64eaebf2ea230 (patch) | |
tree | 87841dc58f3c592fa29d79e11f97c12c1839c5d3 /drivers/rtc/rtc-ac100.c | |
parent | drm/bridge/sii8620: Fix memory corruption (diff) | |
download | linux-b0e07da3f5c8d069d186a7983ff64eaebf2ea230.tar.xz linux-b0e07da3f5c8d069d186a7983ff64eaebf2ea230.zip |
qxl: fix primary surface handling
The atomic conversion of the qxl driver didn't got the primary surface
handling completely right. It works in the common simple cases, but
fails for example when changing the display resolution using xrandr or
in multihead setups.
The rules are simple: There is one primary surface. Before defining a
new one you have to destroy the old one.
This patch makes qxl_primary_atomic_update() destroy the primary surface
before defining a new one. It fixes is_primary flag updates. It adds
is_primary checks so we don't try to update the primary surface in case
it already has the state we want it being in.
Fixes: 3538e80a869b ("drm: qxl: Atomic phase 1: Implement mode_set_nofb")
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102338
Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=196777
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Gabriel Krisman Bertazi <krisman@collabora.co.uk>
Link: http://patchwork.freedesktop.org/patch/msgid/20170911093950.22401-1-kraxel@redhat.com
Diffstat (limited to 'drivers/rtc/rtc-ac100.c')
0 files changed, 0 insertions, 0 deletions