[PATCH] DRI2: use ConfigNotify to re-allocate buffers if root window changes
Jesse Barnes
jbarnes at virtuousgeek.org
Thu Jul 8 11:48:00 PDT 2010
On Thu, 8 Jul 2010 11:39:01 -0700
Jesse Barnes <jbarnes at virtuousgeek.org> wrote:
> If the root window changes size, we need to re-allocate any DRI2
> buffers that share the same pixmap so that they'll pick up the new root
> pixmap (if the underlying driver ended up creating a new one).
>
> So make sure we hook into the ConfigNotify chain in randr, and track
> root pixmap changes in the DRI2 screen struct, re-allocating DRI2
> buffers as needed when the changes occur.
>
> Signed-off-by: Jesse Barnes <jbarnes at virtuousgeek.org>
Oh forgot to mention this is an alternate approach for fixing the randr
resize bug, it obsoletes the previous patch "DRI2: track drawable
serial numbers".
--
Jesse Barnes, Intel Open Source Technology Center
More information about the xorg-devel
mailing list