[Mesa-dev] [PATCH] egl/dri2: add image_loader_extension back into loader extensions for wayland

Derek Foreman derekf at osg.samsung.com
Tue Jan 10 21:21:47 UTC 2017


before commit f871946594129500a67c05a6d9fe99db54b4bb64
image_loader_extension was always present in dri2_dpy->extensions,
after that commit it is only present for render nodes.

Its removal broke partial render based on buffer age on (at least)
raspberry pi.

Signed-off-by: Derek Foreman <derekf at osg.samsung.com>
---

I'm no expert on these bits of code, I simply found this by bisecting and
looking at the differences.

To see the problem, if one has a raspberry pi 3, one can run weston under
weston (or any efl applications using the GL back-end on a wayland
compositor).

Frames become black in areas that aren't updated, instead of displaying the
content implied by the queried buffer age.

 src/egl/drivers/dri2/platform_wayland.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/egl/drivers/dri2/platform_wayland.c b/src/egl/drivers/dri2/platform_wayland.c
index 395f1e181d..fd4812a4fe 100644
--- a/src/egl/drivers/dri2/platform_wayland.c
+++ b/src/egl/drivers/dri2/platform_wayland.c
@@ -1080,6 +1080,7 @@ static struct dri2_egl_display_vtbl dri2_wl_display_vtbl = {
 
 static const __DRIextension *dri2_loader_extensions[] = {
    &dri2_loader_extension.base,
+   &image_loader_extension.base,
    &image_lookup_extension.base,
    &use_invalidate.base,
    NULL,
-- 
2.11.0



More information about the mesa-dev mailing list