dri2: Invalidate window pixmaps

While a redirected window is flipped, its pixmap may still be used as
and EGL image and should also get invalidated. When sending invalidate
events for a window, also send the events for its pixmap.

Signed-off-by: Ville Syrjälä <syrjala@sci.fi>
Reviewed-by: Keith Packard <keithp@keithp.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Ville Syrjälä 2011-12-18 18:29:41 +02:00 • committed by Keith Packard
commit 4df65d247b
4 changed files with 7 additions and 5 deletions

View file

@ -156,13 +156,13 @@ ProcDRI2Authenticate(ClientPtr client)
}
static void
DRI2InvalidateBuffersEvent(DrawablePtr pDraw, void *priv)
DRI2InvalidateBuffersEvent(DrawablePtr pDraw, void *priv, XID id)
{
xDRI2InvalidateBuffers event;
ClientPtr client = priv;
event.type = DRI2EventBase + DRI2_InvalidateBuffers;
event.drawable = pDraw->id;
event.drawable = id;
WriteEventsToClient(client, 1, (xEvent *)&event);
}