[PATCH] qxl: fix primary surface handling

Gabriel Krisman Bertazi krisman at collabora.co.uk
Mon Sep 11 16:31:40 UTC 2017


Gerd Hoffmann <kraxel at redhat.com> writes:

> 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.
>

Reviewed-by: Gabriel Krisman Bertazi <krisman at collabora.co.uk>

-- 
Gabriel Krisman Bertazi


More information about the dri-devel mailing list