egl/x11: Re-allocate buffers if format is suboptimal
authorLouis-Francis Ratté-Boulianne <lfrb@collabora.com>
Fri, 6 Oct 2017 05:26:51 +0000 (01:26 -0400)
committerDaniel Stone <daniels@collabora.com>
Fri, 9 Mar 2018 17:47:14 +0000 (17:47 +0000)
commit3160cb86aa9234ff78e11fe7a00f30bfb5cb8445
tree0fd309687b78213936bc5a5cd81efd021e25d162
parent069fdd5f9facbd72fb6a289696c7b74e3237e70f
egl/x11: Re-allocate buffers if format is suboptimal

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 <lfrb@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/egl_dri2.h
src/egl/drivers/dri2/platform_x11_dri3.c
src/glx/dri3_glx.c
src/loader/loader_dri3_helper.c
src/loader/loader_dri3_helper.h