Re: [Mesa-dev] [RFC v5 08/19] egl/x11: Re-allocate buffers if format is suboptimal

2017-11-07 Thread Constantine Kharlamov
[snip] > @@ -372,10 +372,22 @@ dri3_handle_present_event(struct loader_dri3_drawable > *draw, > switch (ce->mode) { > case XCB_PRESENT_COMPLETE_MODE_FLIP: > draw->flipping = true; > +for (int b = 0; b < sizeof(draw->buffers) / > sizeof(draw->buffers[0]

[Mesa-dev] [RFC v5 08/19] egl/x11: Re-allocate buffers if format is suboptimal

2017-11-06 Thread Louis-Francis Ratté-Boulianne
If PresentCompleteNotify event says the pixmap was presented with mode PresentCompleteModeSuboptimalCopy, it means the pixmap could possibly have been flipped instead if allocated with a different format/modifier. Signed-off-by: Louis-Francis Ratté-Boulianne --- src/egl/drivers/dri2/egl_dri2.c