[PATCH] dri2: invalidate drawable after sharing pixmap

Chris Wilson chris at chris-wilson.co.uk
Thu Sep 6 03:04:30 PDT 2012

On Thu,  6 Sep 2012 16:35:39 +1000, Dave Airlie <airlied at gmail.com> wrote:
> From: Dave Airlie <airlied at redhat.com>
> After we share the pixmap, the backing storage may have changed,
> and we need to invalidate and buffers pointing at it.
> This fixes GL compositors and prime windows lacking contents initially.

The problem is more systemic than this. Since DRI2InvalidateDrawable is
not exported to the drivers, nor any of the components required to
implement the routine, the driver cannot change a backing bo for a
pixmap once it already has been exported to one client.

So I think the general solution here is to export the invalidation to
the driver so that it can perform it as necessary whenever the backing
bo changes.

Chris Wilson, Intel Open Source Technology Centre

More information about the xorg-devel mailing list