[PATCH xserver 2/2] dri2: Allow many blocked clients per-drawable

Adam Jackson ajax at nwnk.net
Mon Feb 29 19:37:43 UTC 2016


On Fri, 2016-02-12 at 11:59 +0000, Chris Wilson wrote:
> This patch was motivated by the need to fix the use-after-free in
> dri2ClientWake, but in doing so removes an arbitrary restriction that
> limits DRI2 to only blocking the first client on each drawable. In order
> to fix the use-after-free, we need to avoid touching our privates in the
> ClientSleep callback and so we want to only use that external list as
> our means of controlling sleeps and wakeups. We thus have a list of
> sleeping clients at our disposal and can manage multiple events and
> sources.

Very nice.

remote: I: patch #73508 updated using rev bc3634010c096dffd1935c0c6cf8ba37534ae3d8.
remote: I: patch #73509 updated using rev d8882954570aba656d5a7be7d357feaba21cb099.
remote: I: 2 patch(es) updated to state Accepted.
To ssh://git.freedesktop.org/git/xorg/xserver
   9fecc4c..d888295  master -> master

- ajax


More information about the xorg-devel mailing list