[Mesa-dev] [PATCH 07/10] egl/surfaceless: honour the format passed to getBuffers

Emil Velikov emil.l.velikov at gmail.com
Fri Aug 3 12:44:23 UTC 2018


From: Emil Velikov <emil.velikov at collabora.com>

The DRI module provides the correct format. If there is a cornercase
where it does the wrong thing, we should address it.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/egl/drivers/dri2/platform_surfaceless.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/egl/drivers/dri2/platform_surfaceless.c b/src/egl/drivers/dri2/platform_surfaceless.c
index ef34c5db373..81b305c527b 100644
--- a/src/egl/drivers/dri2/platform_surfaceless.c
+++ b/src/egl/drivers/dri2/platform_surfaceless.c
@@ -85,7 +85,7 @@ surfaceless_image_get_buffers(__DRIdrawable *driDrawable,
          dri2_surf->front = dri2_dpy->image->createImage(dri2_dpy->dri_screen,
                                                          dri2_surf->base.Width,
                                                          dri2_surf->base.Height,
-                                                         dri2_surf->visual,
+                                                         format,
                                                          0, NULL);
 
       buffers->image_mask |= __DRI_IMAGE_BUFFER_FRONT;
-- 
2.18.0



More information about the mesa-dev mailing list