[PATCH] dri2: Register the DRI2DrawableType after server regeneration
Paulo Zanoni
przanoni at gmail.com
Sat Oct 29 05:33:15 PDT 2011
2011/8/25 Chris Wilson <chris at chris-wilson.co.uk>:
> The Resource database is reset upon regeneration and so the dri2 module
> needs to re-register its RESTYPE for the drawable or else it will
> clobber the next unsuspecting user of the database. Fortunately, DRI2 is
> loaded late in the initialisation sequence and was last up until
> xf86-video-intel started using the Resource database to track
> outstanding swaps...
>
> Signed-off-by: Chris Wilson <chris at chris-wilson.co.uk>
> ---
> v2: Try registering the RESTYPE from InitExtensions().
> ---
Tested-by: Paulo Zanoni <paulo.r.zanoni at intel.com>
How to reproduce the bug fixed by this patch:
# X -retro :0
# DISPLAY=:0 glxinfo
# DISPLAY=:0 glxinfo
After the second glxinfo, X will crash. Notice that you can't have
other X clients, so you can trigger new server generations.
--
Paulo Zanoni
More information about the xorg-devel
mailing list